summaryrefslogtreecommitdiff
path: root/t/chainlint/exit-subshell.test
blob: 05dff55cd73e399ac02f01815f9cf23ab1f8e0b0 (plain)
1
2
3
4
5
6
7
8
test_expect_success 'exit-subshell' '
(
# LINT: "|| exit {n}" valid subshell escape without hurting &&-chain
	foo || exit 1
	bar &&
	baz
)
'