interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / chainlint / subshell-one-liner.test

26 lines · 536 bytes Raw Blame History
1test_expect_success 'subshell-one-liner' '
2(
3# LINT: nested one-liner subshell
4 (foo && bar) &&
5 (foo && bar) |
6 (foo && bar) >baz &&
7
8# LINT: nested one-liner subshell missing internal "&&"
9 (foo; bar) &&
10 (foo; bar) |
11 (foo; bar) >baz &&
12
13# LINT: nested one-liner subshell with "|| exit"
14 (foo || exit 1) &&
15 (foo || exit 1) |
16 (foo || exit 1) >baz &&
17
18# LINT: nested one-liner subshell lacking ending "&&"
19 (foo && bar)
20
21# LINT: nested one-liner subshell missing internal "&&" and lacking ending "&&"
22 (foo && bar; baz)
23
24 foobar
25)
26'