]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/parser/case2.0
shell_cmds-203.tar.gz
[apple/shell_cmds.git] / sh / tests / parser / case2.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/parser/case2.0 207824 2010-05-09 17:10:50Z jilles $
71aad674
A
2
3# Pretty much only ash derivatives can parse all of this.
4
5f1() {
6 x=$(case x in
7 (x|esac) ;;
8 (*) echo bad >&2 ;;
9 esac)
10}
11f1
12f2() {
13 x=$(case x in
14 (x|esac) ;;
15 (*) echo bad >&2
16 esac)
17}
18f2
19f3() {
20 x=$(case x in
21 x|esac) ;;
22 *) echo bad >&2 ;;
23 esac)
24}
25f3
26f4() {
27 x=$(case x in
28 x|esac) ;;
29 *) echo bad >&2
30 esac)
31}
32f4