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 / chained-subshell.test

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