]>
Commit | Line | Data |
---|---|---|
90a88039 ES |
1 | ( |
2 | # LINT: nested one-liner subshell | |
3 | (foo && bar) && | |
4 | (foo && bar) | | |
5 | (foo && bar) >baz && | |
6 | ||
7 | # LINT: nested one-liner subshell missing internal "&&" | |
8 | (foo; bar) && | |
9 | (foo; bar) | | |
10 | (foo; bar) >baz && | |
11 | ||
12 | # LINT: nested one-liner subshell with "|| exit" | |
13 | (foo || exit 1) && | |
14 | (foo || exit 1) | | |
15 | (foo || exit 1) >baz && | |
16 | ||
17 | # LINT: nested one-liner subshell lacking ending "&&" | |
18 | (foo && bar) | |
19 | ||
20 | # LINT: nested one-liner subshell missing internal "&&" and lacking ending "&&" | |
21 | (foo && bar; baz) | |
22 | ||
23 | foobar | |
24 | ) |