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