summaryrefslogtreecommitdiffstats
path: root/t/chainlint/one-liner.test
blob: be9858fa29efbe862bf07269a35abe7324568e22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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")