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