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 / one-liner.test

14 lines · 329 bytes Raw Blame History
1test_expect_success 'one-liner' '
2# LINT: top-level one-liner subshell
3(foo && bar) &&
4(foo && bar) |
5(foo && bar) >baz &&
6
7# LINT: top-level one-liner subshell missing internal "&&" and broken &&-chain
8(foo; bar) &&
9(foo; bar) |
10(foo; bar) >baz &&
11
12# LINT: ";" in string not misinterpreted as broken &&-chain
13(foo "bar; baz")
14'