xref: /freebsd/bin/sh/tests/builtins/getopts8.0 (revision 0f7f3352c8bc463607912e2463d13e52d44a4cae)
1# $FreeBSD$
2
3set -- -yz -wx
4opt=wrong1 OPTARG=wrong2
5while getopts :x opt; do
6	echo "$opt:${OPTARG-unset}"
7done
8echo "OPTIND=$OPTIND"
9