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 /commit.c | |
parent | 5be30d0cd301f50e5f4dd992bc11ce75f457cf46 (diff) |
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 'commit.c')
0 files changed, 0 insertions, 0 deletions