Start the 2.46 cycle
[git.git] / t / chainlint / chained-subshell.test
blob4ff6ddd8cbd078d3288cc4611a66bb4fbe7c4a04
1 # LINT: start of subshell chained to preceding command
2 mkdir sub && (
3         cd sub &&
4         foo the bar
5         nuff said
6 ) &&
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)