xref: /freebsd/bin/sh/tests/builtins/getopts7.0 (revision 1a13f2e6b444dd8048aebd2ac1f0b8fae9e3088f)
1# $FreeBSD$
2
3set -- -x
4getopts :x: var
5r=$?
6[ r != 0 ] && [ "$OPTIND" = 2 ]
7