blob: aa4abbc91c593aad1965969a5fe2fdac173a2688 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
# $FreeBSD: head/bin/sh/tests/builtins/getopts9.0 297752 2016-04-09 16:06:13Z jilles $
args='-ab'
getopts ab opt $args
printf '%s\n' "$?:$opt:$OPTARG"
for dummy in dummy1 dummy2; do
getopts ab opt $args
printf '%s\n' "$?:$opt:$OPTARG"
done
|