blob: a4864f5318f06fae105cbe042ce70d21ebff98cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
# $FreeBSD: releng/12.1/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
|