1# $FreeBSD: head/bin/sh/tests/builtins/getopts9.0 273700 2014-10-26 17:50:33Z jilles $
| 1# $FreeBSD: head/bin/sh/tests/builtins/getopts9.0 297752 2016-04-09 16:06:13Z jilles $
|
2 3args='-ab' 4getopts ab opt $args
| 2 3args='-ab' 4getopts ab opt $args
|
5echo $?:$opt:$OPTARG
| 5printf '%s\n' "$?:$opt:$OPTARG"
|
6for dummy in dummy1 dummy2; do 7 getopts ab opt $args
| 6for dummy in dummy1 dummy2; do 7 getopts ab opt $args
|
8 echo $?:$opt:$OPTARG
| 8 printf '%s\n' "$?:$opt:$OPTARG"
|
9done
| 9done
|