summary refs log tree commit diff
path: root/bin/1sh/tests/builtins/case1.0
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/1sh/tests/builtins/case1.013
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/1sh/tests/builtins/case1.0 b/bin/1sh/tests/builtins/case1.0
new file mode 100644
index 00000000..fb03d18d
--- /dev/null
+++ b/bin/1sh/tests/builtins/case1.0
@@ -0,0 +1,13 @@
+#$FreeBSD: releng/12.1/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