summary refs log tree commit diff
path: root/bin/cash/tests/builtins/getopts3.0
blob: 428ad5c314e6a8721044d1f218f8bb313a88c7d3 (plain) (blame)
1
2
3
4
5
6
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/getopts3.0 265616 2014-05-07 21:45:25Z jilles $

shift $#
getopts x opt
r=$?
[ "$r" != 0 ] && [ "$OPTIND" = 1 ]