81f962f3df
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
8 lines
187 B
Plaintext
Executable File
8 lines
187 B
Plaintext
Executable File
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"
|