projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'vendor/OPENPAM'
[dragonfly.git]
/
tools
/
regression
/
bin
/
sh
/
parser
/
case2.0
1
# $FreeBSD: src/tools/regression/bin/sh/parser/case2.0,v 1.1 2010/05/09 17:10:50 jilles Exp $
2
3
# Pretty much only ash derivatives can parse all of this.
4
5
f1() {
6
x=$(case x in
7
(x|esac) ;;
8
(*) echo bad >&2 ;;
9
esac)
10
}
11
f1
12
f2() {
13
x=$(case x in
14
(x|esac) ;;
15
(*) echo bad >&2
16
esac)
17
}
18
f2
19
f3() {
20
x=$(case x in
21
x|esac) ;;
22
*) echo bad >&2 ;;
23
esac)
24
}
25
f3
26
f4() {
27
x=$(case x in
28
x|esac) ;;
29
*) echo bad >&2
30
esac)
31
}
32
f4