Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/chainlint/semicolon.test # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / chainlint / semicolon.test` 27 lines ยท 508 bytes Raw Blame History 1 test_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 '