interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / chainlint / semicolon.test

27 lines · 508 bytes Raw Blame History
1test_expect_success 'semicolon' '
2(
3# LINT: missing internal "&&" and ending "&&"
4 cat foo ; echo bar
5# LINT: final statement before ")" only missing internal "&&"
6 cat foo ; echo bar
7) &&
8(
9# LINT: missing internal "&&"
10 cat foo ; echo bar &&
11 cat foo ; echo bar
12) &&
13(
14# LINT: not fooled by semicolon in string
15 echo "foo; bar" &&
16 cat foo; echo bar
17) &&
18(
19# LINT: semicolon unnecessary but legitimate
20 foo;
21) &&
22(cd foo &&
23 for i in a b c; do
24# LINT: semicolon unnecessary but legitimate
25 echo;
26 done)
27'