aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-getopts/getopt_positional.tests
blob: 20716bb0c990de92a3233d8b94e00e52648a5c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(

set -- -q -w -e r -t -y
echo "*** no OPTIND, optstring:'we' args:$*"
var=QWERTY
while getopts "we" var; do
	echo "var:'$var' OPTIND:$OPTIND"
done
echo "exited: var:'$var' OPTIND:$OPTIND"

) 2>&1 \
| sed	-e 's/ unrecognized option: / invalid option -- /' \
	-e 's/ illegal option -- / invalid option -- /' \