summaryrefslogtreecommitdiffstats
path: root/bin/sh/tests/builtins/getopts9.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/tests/builtins/getopts9.0')
-rw-r--r--bin/sh/tests/builtins/getopts9.09
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/sh/tests/builtins/getopts9.0 b/bin/sh/tests/builtins/getopts9.0
new file mode 100644
index 0000000..d23fc43
--- /dev/null
+++ b/bin/sh/tests/builtins/getopts9.0
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+args='-ab'
+getopts ab opt $args
+echo $?:$opt:$OPTARG
+for dummy in dummy1 dummy2; do
+ getopts ab opt $args
+ echo $?:$opt:$OPTARG
+done
OpenPOWER on IntegriCloud