xref: /freebsd/bin/sh/tests/parser/case2.0 (revision 2008043f386721d58158e37e0d7e50df8095942d)
1
2# Pretty much only ash derivatives can parse all of this.
3
4f1() {
5	x=$(case x in
6		(x|esac) ;;
7		(*) echo bad >&2 ;;
8	esac)
9}
10f1
11f2() {
12	x=$(case x in
13		(x|esac) ;;
14		(*) echo bad >&2
15	esac)
16}
17f2
18f3() {
19	x=$(case x in
20		x|esac) ;;
21		*) echo bad >&2 ;;
22	esac)
23}
24f3
25f4() {
26	x=$(case x in
27		x|esac) ;;
28		*) echo bad >&2
29	esac)
30}
31f4
32