On 3/15/25 7:08 PM, MacBeth wrote:
On Sat, Mar 15, 2025 at 12:33 PM Greg Wooledge <g...@wooledge.org> wrote:
On Sat, Mar 15, 2025 at 16:14:00 +0000, 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 << "a
b"

You don't.


However you could fake it, by including backslashes in the delimiter,
which would allow literal newlines,

It would not; this is a line continuation.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to