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