Re: [PATCH] Handle line continuation in unquoted heredocs

Herbert Xu <[email protected]> Thu, 28 Aug 2025 17:47:33 +0800
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
Denys Vlasenko <[email protected]> wrote:
> Testcases:
> 
> cat <<nice
> heredoc1
> ni\
> ce
> nice # this isn't heredoc end, the end is above

I think this is debatable.  The current behaviour differs from
bash, but matches ksh.

Since POSIX apparently left this as unspecified, I'm not changing
dash.

Thanks,
-- 
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt