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