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