]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/builtins/getopts8.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / getopts8.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/builtins/getopts8.0 265849 2014-05-10 19:18:49Z jilles $
71aad674
A
2
3set -- -yz -wx
4opt=wrong1 OPTARG=wrong2
5while getopts :x opt; do
6 echo "$opt:${OPTARG-unset}"
7done
8echo "OPTIND=$OPTIND"