]> git.ipfire.org Git - thirdparty/git.git/blame - t/chainlint/case.test
Merge branch 'jc/receive-deny-current-branch-fix' into maint
[thirdparty/git.git] / t / chainlint / case.test
CommitLineData
ebcbbe06
ES
1(
2# LINT: "...)" arms in 'case' not misinterpreted as subshell-closing ")"
3 case "$x" in
4 x) foo ;;
5 *) bar ;;
6 esac &&
7 foobar
8) &&
9(
10# LINT: missing "&&" on 'esac'
11 case "$x" in
12 x) foo ;;
13 *) bar ;;
14 esac
15 foobar
16) &&
17(
18# LINT: "...)" arm in one-liner 'case' not misinterpreted as closing ")"
19 case "$x" in 1) true;; esac &&
20# LINT: same but missing "&&"
21 case "$y" in 2) false;; esac
22 foobar
23)