15 lines
329 B
Plaintext
15 lines
329 B
Plaintext
test_expect_success 'one-liner' '
|
|
# LINT: top-level one-liner subshell
|
|
(foo && bar) &&
|
|
(foo && bar) |
|
|
(foo && bar) >baz &&
|
|
|
|
# LINT: top-level one-liner subshell missing internal "&&" and broken &&-chain
|
|
(foo; bar) &&
|
|
(foo; bar) |
|
|
(foo; bar) >baz &&
|
|
|
|
# LINT: ";" in string not misinterpreted as broken &&-chain
|
|
(foo "bar; baz")
|
|
'
|