git/t/chainlint/exit-subshell.test

9 lines
141 B
Plaintext

test_expect_success 'exit-subshell' '
(
# LINT: "|| exit {n}" valid subshell escape without hurting &&-chain
foo || exit 1
bar &&
baz
)
'