summaryrefslogtreecommitdiff
path: root/corebinutils/sh/tests/builtins/case1.0
blob: 3a89fd2c37292c3e3b3cdd3624234d4c6319411c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
f()
{
	false
	case $1 in
	foo) true ;;
	bar) false ;;
	esac
}

f foo || exit 1
f bar && exit 1
f quux || exit 1