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