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