mirror of
https://github.com/git/git
synced 2024-08-28 12:09:19 +00:00
![Eric Sunshine](/assets/img/avatar_default.png)
chainlint.sed inserts a ">" annotation at the beginning of a line to signal that its heuristics have identified an end-of-subshell. This was useful as a debugging aid during development of the script, but it has no value to test writers and might even confuse them into thinking that the linter is misbehaving by inserting line-noise into the shell code it is validating. Moreover, its presence also potentially makes it difficult to reuse the chainlint self-test "expect" output should a more capable linter ever be developed. Therefore, drop the ">" annotation. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 lines
261 B
Plaintext
15 lines
261 B
Plaintext
(
|
|
(foo && bar) &&
|
|
(foo && bar) |
|
|
(foo && bar) >baz &&
|
|
(foo; ?!AMP?! bar) &&
|
|
(foo; ?!AMP?! bar) |
|
|
(foo; ?!AMP?! bar) >baz &&
|
|
(foo || exit 1) &&
|
|
(foo || exit 1) |
|
|
(foo || exit 1) >baz &&
|
|
(foo && bar) ?!AMP?!
|
|
(foo && bar; ?!AMP?! baz) ?!AMP?!
|
|
foobar
|
|
)
|