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