summaryrefslogtreecommitdiff
path: root/t/chainlint/multi-line-nested-command-substitution.test
blob: e811c63f2bca4217da16ad40552bd1d8ece87be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
test_expect_success 'multi-line-nested-command-substitution' '
(
	foo &&
	x=$(
		echo bar |
		cat
	) &&
	echo ok
) |
sort &&
(
	bar &&
	x=$(echo bar |
		cat
	) &&
	y=$(echo baz |
		fip) &&
	echo fail
)
'