diff options
Diffstat (limited to 'shell_cmds/sh/tests/builtins/getopts3.0')
-rw-r--r-- | shell_cmds/sh/tests/builtins/getopts3.0 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/builtins/getopts3.0 b/shell_cmds/sh/tests/builtins/getopts3.0 new file mode 100644 index 0000000..6087d73 --- /dev/null +++ b/shell_cmds/sh/tests/builtins/getopts3.0 @@ -0,0 +1,6 @@ +# $FreeBSD: head/bin/sh/tests/builtins/getopts3.0 265616 2014-05-07 21:45:25Z jilles $ + +shift $# +getopts x opt +r=$? +[ "$r" != 0 ] && [ "$OPTIND" = 1 ] |