Start the 2.46 cycle
[git.git] / t / chainlint / case.test
blob4cb086bf87b04c709601ca610aad6db39bbd8bb4
2 # LINT: "...)" arms in "case" not misinterpreted as subshell-closing ")"
3         case "$x" in
4         x) foo ;;
5         *) bar ;;
6         esac &&
7         foobar
8 ) &&
10 # LINT: missing "&&" on "esac"
11         case "$x" in
12         x) foo ;;
13         *) bar ;;
14         esac
15         foobar
16 ) &&
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