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/chained-subshell.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 / chained-subshell.test` 15 lines ยท 398 bytes Raw Blame History 1 test_expect_success 'chained-subshell' ' 2 # LINT: start of subshell chained to preceding command 3 mkdir sub && ( 4 cd sub && 5 foo the bar 6 nuff said 7 ) && 8 9 # LINT: preceding command pipes to subshell on same line 10 cut "-d " -f actual | (read s1 s2 s3 && 11 test -f $s1 12 test $(cat $s2) = tree2path1 && 13 # LINT: closing subshell ")" correctly detected on same line as "$(...)" 14 test $(cat $s3) = tree3path1) 15 '