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