public inbox for dash@vger.kernel.org
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Denys Vlasenko <dvlasenk@redhat.com>
Cc: dash@vger.kernel.org, herbert.xu@redhat.com, dvlasenk@redhat.com
Subject: Re: [PATCH] Handle line continuation in unquoted heredocs
Date: Thu, 28 Aug 2025 17:47:33 +0800	[thread overview]
Message-ID: <aLAltecN3o4AdeNv@gondor.apana.org.au> (raw)
In-Reply-To: <20250807201015.11358-1-dvlasenk@redhat.com>

Denys Vlasenko <dvlasenk@redhat.com> 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 <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

      parent reply	other threads:[~2025-08-28  9:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-07 20:10 [PATCH] Handle line continuation in unquoted heredocs Denys Vlasenko
2025-08-07 20:50 ` Harald van Dijk
2025-08-28  9:47 ` Herbert Xu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aLAltecN3o4AdeNv@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=dash@vger.kernel.org \
    --cc=dvlasenk@redhat.com \
    --cc=herbert.xu@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox