]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/builtins/getopts8.0
da4af6bd0b567422017a1cbdf3b1d517d24eb68e
[apple/shell_cmds.git] / sh / tests / builtins / getopts8.0
1 # $FreeBSD$
2
3 set -- -yz -wx
4 opt=wrong1 OPTARG=wrong2
5 while getopts :x opt; do
6 echo "$opt:${OPTARG-unset}"
7 done
8 echo "OPTIND=$OPTIND"