xref: /freebsd/bin/sh/tests/builtins/getopts6.0 (revision 02e9120893770924227138ba49df1edb3896112a)
1
2set -- -x -y
3getopts :x var || echo "First getopts bad: $?"
4getopts :x var
5r=$?
6[ r != 0 ] && [ "$OPTIND" = 3 ]
7