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/subshell-one-liner.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 / subshell-one-liner.test` 26 lines ยท 536 bytes Raw Blame History 1 test_expect_success 'subshell-one-liner' ' 2 ( 3 # LINT: nested one-liner subshell 4 (foo && bar) && 5 (foo && bar) | 6 (foo && bar) >baz && 7 8 # LINT: nested one-liner subshell missing internal "&&" 9 (foo; bar) && 10 (foo; bar) | 11 (foo; bar) >baz && 12 13 # LINT: nested one-liner subshell with "|| exit" 14 (foo || exit 1) && 15 (foo || exit 1) | 16 (foo || exit 1) >baz && 17 18 # LINT: nested one-liner subshell lacking ending "&&" 19 (foo && bar) 20 21 # LINT: nested one-liner subshell missing internal "&&" and lacking ending "&&" 22 (foo && bar; baz) 23 24 foobar 25 ) 26 '