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/for-loop.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 / for-loop.test` 21 lines ยท 343 bytes Raw Blame History 1 test_expect_success 'for-loop' ' 2 ( 3 # LINT: "for", "do", "done" do not need "&&" 4 for i in a b c 5 do 6 # LINT: missing "&&" on "echo" 7 echo $i 8 # LINT: last statement of while does not need "&&" 9 cat <<-\EOF 10 bar 11 EOF 12 # LINT: missing "&&" on "done" 13 done 14 15 # LINT: "do" on same line as "for" 16 for i in a b c; do 17 echo $i && 18 cat $i 19 done 20 ) 21 '