]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/builtins/getopts6.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / getopts6.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/builtins/getopts6.0 265844 2014-05-10 17:42:21Z jilles $
71aad674
A
2
3set -- -x -y
4getopts :x var || echo "First getopts bad: $?"
5getopts :x var
6r=$?
7[ r != 0 ] && [ "$OPTIND" = 3 ]