Files
ECC/scripts
L4XB 159062e339 fix(hooks): look past a line continuation when deciding whether # starts a comment
Bash removes a backslash-newline before it reads the line, so the character before the pair
decides whether a following # starts a word. `echo \` then `# <<EOF` on the next line is a
comment, and the command after it runs; `echo foo\` then `#bar` stays one word. Count the
backslashes before a blank instead of remembering the last escape, which also took the
continuation for an escaped character.
2026-10-23 12:05:45 +02:00
..