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