]> git.ipfire.org Git - thirdparty/git.git/blob - t/chainlint/chained-subshell.test
Merge branch 'jk/clone-allow-bare-and-o-together'
[thirdparty/git.git] / t / chainlint / chained-subshell.test
1 # LINT: start of subshell chained to preceding command
2 mkdir sub && (
3 cd sub &&
4 foo the bar
5 nuff said
6 ) &&
7
8 # LINT: preceding command pipes to subshell on same line
9 cut "-d " -f actual | (read s1 s2 s3 &&
10 test -f $s1
11 test $(cat $s2) = tree2path1 &&
12 # LINT: closing subshell ")" correctly detected on same line as "$(...)"
13 test $(cat $s3) = tree3path1)