xref: /freebsd/bin/sh/tests/builtins/getopts9.0 (revision f6a3b357e9be4c6423c85eff9a847163a0d307c8)
1# $FreeBSD$
2
3args='-ab'
4getopts ab opt $args
5printf '%s\n' "$?:$opt:$OPTARG"
6for dummy in dummy1 dummy2; do
7	getopts ab opt $args
8	printf '%s\n' "$?:$opt:$OPTARG"
9done
10