Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Different behaviour when interpreting a here-document between 5.3 and 5.5.1



On Thu, Apr 19, 2018 at 2:52 PM, Enrico Maria Crisostomo
<enrico.m.crisostomo@xxxxxxxxx> wrote:
>     cat <<EOF
>   checksums           rmd160 ${CHECKSUM_RMD160} \\
>                       sha256 ${CHECKSUM_SHA256} \\
>                       size   ${CHECKSUM_SIZE}
>   EOF

Yeah, this is commit 47aa6095 aka workers/42355.  It's recognizing
backslash-newline but not whether the backslash is itself escaped.

The NEWS file should have mentioned the change to here-documents, I
think.  However, not catching the double backslash is a bug.  However,
part 2, figuring this out requires scanning backwards to see if you
have an even or odd number of trailing backlashes, or scanning forward
and tokenizing while consuming the document.  Bleah.



Messages sorted by: Reverse Date, Date, Thread, Author