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