summaryrefslogtreecommitdiff
path: root/tests/case.tests
blob: 7c501658fbd5c6b7f7e53c65ee0a3325259f92f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
case foo in
bar)	echo skip ;;
foo)	echo fallthrough ;&
bax)	echo to here ;&
qux)	echo and here;;
fop)	echo but not here;;
esac

case foobar in
bar)	echo skip ;;
foo*)	echo retest ;;&
*bar)	echo and match ;;&
qux)	echo but not this ;;
esac

case a in
a)	echo no more clauses;&
esac