|
From: | Chet Ramey |
Subject: | Re: Heredoc with a multiline delimiter |
Date: | Mon, 17 Mar 2025 09:49:28 -0400 |
User-agent: | Mozilla Thunderbird |
On 3/15/25 7:08 PM, MacBeth wrote:
On Sat, Mar 15, 2025 at 12:33 PM Greg Wooledge <greg@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 chet@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |