blob: ef58d3aee6c9222ae7e875ceb256459757dd2bac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $FreeBSD: releng/12.0/bin/sh/tests/parser/case2.0 207824 2010-05-09 17:10:50Z jilles $
# Pretty much only ash derivatives can parse all of this.
f1() {
x=$(case x in
(x|esac) ;;
(*) echo bad >&2 ;;
esac)
}
f1
f2() {
x=$(case x in
(x|esac) ;;
(*) echo bad >&2
esac)
}
f2
f3() {
x=$(case x in
x|esac) ;;
*) echo bad >&2 ;;
esac)
}
f3
f4() {
x=$(case x in
x|esac) ;;
*) echo bad >&2
esac)
}
f4
|