xref: /freebsd/bin/sh/tests/builtins/getopts3.0 (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1# $FreeBSD$
2
3shift $#
4getopts x opt
5r=$?
6[ "$r" != 0 ] && [ "$OPTIND" = 1 ]
7