]> git.ipfire.org Git - thirdparty/git.git/blame - t/chainlint/chained-subshell.test
The eighth batch
[thirdparty/git.git] / t / chainlint / chained-subshell.test
CommitLineData
56066523
ES
1# LINT: start of subshell chained to preceding command
2mkdir sub && (
3 cd sub &&
4 foo the bar
5 nuff said
6) &&
7
8# LINT: preceding command pipes to subshell on same line
9cut "-d " -f actual | (read s1 s2 s3 &&
10test -f $s1
11test $(cat $s2) = tree2path1 &&
12# LINT: closing subshell ")" correctly detected on same line as "$(...)"
13test $(cat $s3) = tree3path1)