summaryrefslogtreecommitdiff
path: root/t/chainlint/command-substitution.test
blob: 494d671e80ab6698bbf0c24b2dc542e29539908f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
test_expect_success 'command-substitution' '
(
	foo &&
# LINT: closing ")" of $(...) not misinterpreted as subshell-closing ")"
	bar=$(gobble) &&
	baz
) &&
(
# LINT: missing "&&" on $(...)
	bar=$(gobble blocks)
	baz
)
'