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