about summary refs log tree commit diff
path: root/t/chainlint/one-liner.test
blob: ec9acb98253de1e3c3f94c9843142b45745088b1 (plain) (blame)
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 "&&"
(foo; bar) &&
(foo; bar) |
(foo; bar) >baz

# LINT: ";" in string not misinterpreted as broken &&-chain
(foo "bar; baz")