aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-getopts/getopt_positional.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-11 02:05:21 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-11 02:05:21 +0200
commit81f962f3df0d7194b7a52c6f83259727759094c4 (patch)
tree906d5d55118f0a7c96579c7d12c62b3a14311a7a /shell/hush_test/hush-getopts/getopt_positional.tests
parent74d40589288890fffea437ed2f38ad1f2dc740e5 (diff)
downloadbusybox-81f962f3df0d7194b7a52c6f83259727759094c4.tar.gz
hush: teach getopts to set/unset OPTARG
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-getopts/getopt_positional.tests')
-rwxr-xr-xshell/hush_test/hush-getopts/getopt_positional.tests1
1 files changed, 0 insertions, 1 deletions
diff --git a/shell/hush_test/hush-getopts/getopt_positional.tests b/shell/hush_test/hush-getopts/getopt_positional.tests
index a5404a2a0..ddf063363 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"