summary refs log tree commit diff
path: root/bin/cash/tests/builtins/case1.0
blob: 6c050c62142fa6c5d2f2143a2ca6b7b206f5c1dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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