On 3/15/25 9:18 PM, Robert Elz wrote:
POSIX says:
It is unspecified whether the line containing the trailing delimiter
is itself subject to this line continuation.
which means that nothing is required to make that work. Further, unless
bash documents it as working, it is free
On 3/15/25 7:08 PM, MacBeth wrote:
On Sat, Mar 15, 2025 at 12:33 PM Greg Wooledge wrote:
On Sat, Mar 15, 2025 at 16:14:00 +, Nikola Novak via Bug reports for the
GNU Bourne Again SHell wrote:
How do you end the heredoc with a multiline delimiter such as the following:
cat << "
On Sat, Mar 15, 2025, at 7:08 PM, MacBeth wrote:
> On Sat, Mar 15, 2025 at 12:33 PM Greg Wooledge wrote:
>> On Sat, Mar 15, 2025 at 16:14:00 +, Nikola Novak via Bug reports for the
>> GNU Bourne Again SHell wrote:
>> > How do you end the heredoc with a multili
On Sun, Mar 16, 2025 at 1:12 AM Robert Elz wrote:
>
> | bash(1) claims it to be:
>
> Actually, I don't think it does,
>
> | There are three quoting mechanisms: the escape character, single
> | quotes, and double quotes.
> |
> | A non-quoted backslash (\) is the escape charact
Date:Sat, 15 Mar 2025 21:54:18 -0500
From:MacBeth
Message-ID:
| bash(1) claims it to be:
Actually, I don't think it does,
| There are three quoting mechanisms: the escape character, single
| quotes, and double quotes.
|
| A non-quoted backsla
On Sat, Mar 15, 2025 at 8:18 PM Robert Elz wrote:
>
> (line joining using \ isn't technically an escape sequence, but that
> detail is irrelevant here).
>
bash(1) claims it to be:
There are three quoting mechanisms: the escape character, single
quotes, and double quotes.
A non-quote
Date:Sat, 15 Mar 2025 18:08:48 -0500
From:MacBeth
Message-ID:
| However you could fake it, by including backslashes in the delimiter,
| which would allow literal newlines, but bash would ignore them as they
| are escape sequences.
bash does, so does mksh, zs
++
On Sun, Mar 16, 2025, 12:10 AM MacBeth wrote:
> On Sat, Mar 15, 2025 at 12:33 PM Greg Wooledge wrote:
> > On Sat, Mar 15, 2025 at 16:14:00 +, Nikola Novak via Bug reports for
> the GNU Bourne Again SHell wrote:
> > > How do you end the heredoc with a multiline
On Sat, Mar 15, 2025 at 12:33 PM Greg Wooledge wrote:
> On Sat, Mar 15, 2025 at 16:14:00 +, Nikola Novak via Bug reports for the
> GNU Bourne Again SHell wrote:
> > How do you end the heredoc with a multiline delimiter such as the following:
> >
> > cat << "
Date:Sat, 15 Mar 2025 19:42:54 +
From:Nikola Novak via Bug reports for the GNU Bourne Again SHell
Message-ID:
| OK, thank you!
| It's a relief, actually, to hear that. :)
The reason for this is that POSIX says (XCU 2.7.4):
The here-document shall
SHell wrote:
>
> > Hello!
> >
> > How do you end the heredoc with a multiline delimiter such as the following:
> >
> > cat << "a
> > b"
>
>
> You don't.
On Sat, Mar 15, 2025 at 16:14:00 +, Nikola Novak via Bug reports for the
GNU Bourne Again SHell wrote:
> Hello!
>
> How do you end the heredoc with a multiline delimiter such as the following:
>
> cat << "a
> b"
You don't.
Hello!
How do you end the heredoc with a multiline delimiter such as the following:
cat << "a
b"
Kind regards
Nikola Novak
Sent with [Proton Mail](https://proton.me/mail/home) secure email.
13 matches
Mail list logo