aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-getopts/getopt_optarg.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-getopts/getopt_optarg.tests')
-rwxr-xr-xshell/hush_test/hush-getopts/getopt_optarg.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/hush_test/hush-getopts/getopt_optarg.tests b/shell/hush_test/hush-getopts/getopt_optarg.tests
index 33682e868..881cc7884 100755
--- a/shell/hush_test/hush-getopts/getopt_optarg.tests
+++ b/shell/hush_test/hush-getopts/getopt_optarg.tests
@@ -1,3 +1,5 @@
+(
+
set -- -q -w e -r -t -y
echo "*** no OPTIND, optstring:'w:et' args:$*"
var=QWERTY
@@ -16,3 +18,7 @@ while getopts "w:et" var; do
OPTARG=ASDFGH
done
echo "exited: var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
+
+) 2>&1 \
+| sed -e 's/ unrecognized option: / invalid option -- /' \
+ -e 's/ illegal option -- / invalid option -- /' \