Start the 2.46 cycle
[git.git] / t / chainlint / semicolon.test
blob67e1192c50ab0c47a74152a4fd59a6d70797b717
2 # LINT: missing internal "&&" and ending "&&"
3         cat foo ; echo bar
4 # LINT: final statement before ")" only missing internal "&&"
5         cat foo ; echo bar
6 ) &&
8 # LINT: missing internal "&&"
9         cat foo ; echo bar &&
10         cat foo ; echo bar
11 ) &&
13 # LINT: not fooled by semicolon in string
14         echo "foo; bar" &&
15         cat foo; echo bar
16 ) &&
18 # LINT: semicolon unnecessary but legitimate
19         foo;
20 ) &&
21 (cd foo &&
22         for i in a b c; do
23 # LINT: semicolon unnecessary but legitimate
24                 echo;
25         done)