summary refs log tree commit diff
path: root/bin/cash/tests/builtins/getopts8.0
blob: c9855810f4235a2c30f3fbf2a7fdf77bf01ba7ae (plain) (blame)
1
2
3
4
5
6
7
8
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/getopts8.0 265849 2014-05-10 19:18:49Z jilles $

set -- -yz -wx
opt=wrong1 OPTARG=wrong2
while getopts :x opt; do
	echo "$opt:${OPTARG-unset}"
done
echo "OPTIND=$OPTIND"