From 81f962f3df0d7194b7a52c6f83259727759094c4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 11 Aug 2017 02:05:21 +0200 Subject: hush: teach getopts to set/unset OPTARG Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-getopts/getopt_positional.tests | 1 - 1 file changed, 1 deletion(-) (limited to 'shell/hush_test/hush-getopts/getopt_positional.tests') diff --git a/shell/hush_test/hush-getopts/getopt_positional.tests b/shell/hush_test/hush-getopts/getopt_positional.tests index a5404a2..ddf0633 100755 --- a/shell/hush_test/hush-getopts/getopt_positional.tests +++ b/shell/hush_test/hush-getopts/getopt_positional.tests @@ -4,5 +4,4 @@ var=QWERTY while getopts "we" var; do echo "var:'$var' OPTIND:$OPTIND" done -# unfortunately, "rc:0" is shown since while's overall exitcode is "success" echo "exited: var:'$var' OPTIND:$OPTIND" -- cgit v1.1