summaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/getopts7.0
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/builtins/getopts7.0')
-rw-r--r--shell_cmds/sh/tests/builtins/getopts7.06
1 files changed, 6 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/builtins/getopts7.0 b/shell_cmds/sh/tests/builtins/getopts7.0
new file mode 100644
index 0000000..58afa50
--- /dev/null
+++ b/shell_cmds/sh/tests/builtins/getopts7.0
@@ -0,0 +1,6 @@
+# $FreeBSD: head/bin/sh/tests/builtins/getopts7.0 265844 2014-05-10 17:42:21Z jilles $
+
+set -- -x
+getopts :x: var
+r=$?
+[ r != 0 ] && [ "$OPTIND" = 2 ]