summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-getopts/getopt_positional.tests
blob: ddf063363dfdc1d80eb02e2d4036be550a40bf56 (plain)
1
2
3
4
5
6
7
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"