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