mirror of
https://git.busybox.net/busybox
synced 2025-05-10 04:33:59 +02:00
function old new delta builtin_getopts - 271 +271 bltins1 372 384 +12 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/0 up/down: 283/0) Total: 283 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
8 lines
264 B
Text
Executable file
8 lines
264 B
Text
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
|
|
# unfortunately, "rc:0" is shown since while's overall exitcode is "success"
|
|
echo "exited: var:'$var' OPTIND:$OPTIND"
|