summary refs log tree commit diff
path: root/bin/cash/tests/builtins/getopts6.0
blob: 55724dddfd9bea87cb6f5058ebbca015fe22b8d6 (plain) (blame)
1
2
3
4
5
6
7
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/getopts6.0 265844 2014-05-10 17:42:21Z jilles $

set -- -x -y
getopts :x var || echo "First getopts bad: $?"
getopts :x var
r=$?
[ r != 0 ] && [ "$OPTIND" = 3 ]