Re: Heredoc with a multiline delimiter

2025-03-17 Thread Chet Ramey
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

Re: Heredoc with a multiline delimiter

2025-03-17 Thread Chet Ramey
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 << "

Re: Heredoc with a multiline delimiter

2025-03-16 Thread Lawrence Velázquez
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

Re: Heredoc with a multiline delimiter

2025-03-16 Thread MacBeth
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

Re: Heredoc with a multiline delimiter

2025-03-15 Thread Robert Elz
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

Re: Heredoc with a multiline delimiter

2025-03-15 Thread MacBeth
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

Re: Heredoc with a multiline delimiter

2025-03-15 Thread Robert Elz
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

Re: Heredoc with a multiline delimiter

2025-03-15 Thread microsuxx
++ 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

Re: Heredoc with a multiline delimiter

2025-03-15 Thread MacBeth
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 << "

Re: Heredoc with a multiline delimiter

2025-03-15 Thread Robert Elz
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

Re: Heredoc with a multiline delimiter

2025-03-15 Thread Nikola Novak via Bug reports for the GNU Bourne Again SHell
SHell wrote: > > > Hello! > > > > How do you end the heredoc with a multiline delimiter such as the following: > > > > cat << "a > > b" > > > You don't.

Re: Heredoc with a multiline delimiter

2025-03-15 Thread Greg Wooledge
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.

Heredoc with a multiline delimiter

2025-03-15 Thread Nikola Novak via Bug reports for the GNU Bourne Again SHell
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.