diff options
Diffstat (limited to 'tools/regression/bin/sh/builtins/case1.0')
-rw-r--r-- | tools/regression/bin/sh/builtins/case1.0 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/case1.0 b/tools/regression/bin/sh/builtins/case1.0 new file mode 100644 index 0000000..860fc67 --- /dev/null +++ b/tools/regression/bin/sh/builtins/case1.0 @@ -0,0 +1,13 @@ +#$FreeBSD$ +f() +{ + false + case $1 in + foo) true ;; + bar) false ;; + esac +} + +f foo || exit 1 +f bar && exit 1 +f quux || exit 1 |