The sixth batch
[git/gitster.git] / t / chainlint / subshell-one-liner.test
blob37fa643c20a9bf65a573c1f67c3c6729006767b0
2 # LINT: nested one-liner subshell
3         (foo && bar) &&
4         (foo && bar) |
5         (foo && bar) >baz &&
7 # LINT: nested one-liner subshell missing internal "&&"
8         (foo; bar) &&
9         (foo; bar) |
10         (foo; bar) >baz &&
12 # LINT: nested one-liner subshell with "|| exit"
13         (foo || exit 1) &&
14         (foo || exit 1) |
15         (foo || exit 1) >baz &&
17 # LINT: nested one-liner subshell lacking ending "&&"
18         (foo && bar)
20 # LINT: nested one-liner subshell missing internal "&&" and lacking ending "&&"
21         (foo && bar; baz)
23         foobar