diff options
Diffstat (limited to 'bin/cash/tests/builtins/case1.0')
-rw-r--r-- | bin/cash/tests/builtins/case1.0 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/cash/tests/builtins/case1.0 b/bin/cash/tests/builtins/case1.0 new file mode 100644 index 00000000..6c050c62 --- /dev/null +++ b/bin/cash/tests/builtins/case1.0 @@ -0,0 +1,13 @@ +#$FreeBSD: releng/12.0/bin/sh/tests/builtins/case1.0 172440 2007-10-04 16:14:48Z stefanf $ +f() +{ + false + case $1 in + foo) true ;; + bar) false ;; + esac +} + +f foo || exit 1 +f bar && exit 1 +f quux || exit 1 |