diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2021-12-13 01:30:55 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-13 14:15:29 -0800 |
commit | 2d53614210919c2a4eac4a03e9d34da7b9e7ff31 (patch) | |
tree | 76d0de2024e2841307f182fd9c1a996da1dfb03f /t/test-binary-2.png | |
parent | chainlint.sed: drop subshell-closing ">" annotation (diff) | |
download | tgif-2d53614210919c2a4eac4a03e9d34da7b9e7ff31.tar.xz |
chainlint.sed: make here-doc "<<-" operator recognition more POSIX-like
According to POSIX, "<<" and "<<-" are distinct shell operators. For the
latter to be recognized, no whitespace is allowed before the "-", though
whitespace is allowed after the operator. However, the chainlint
patterns which identify here-docs are both too loose and too tight,
incorrectly allowing whitespace between "<<" and "-" but disallowing it
between "-" and the here-doc tag. Fix the patterns to better match
POSIX.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-binary-2.png')
0 files changed, 0 insertions, 0 deletions