Re: Bash' code to store string of any characters containing pair of "" a
From:
Greg Wooledge
Subject:
Re: Bash' code to store string of any characters containing pair of "" and '' at once
Date:
Sat, 21 Dec 2024 22:52:35 -0500
User-agent:
Mutt/1.10.1 (2018-07-13)
On Sun, Dec 22, 2024 at 13:45:19 +1000, Martin D Kealey wrote:
> Failing that, by far the "simplest" approach to "literal" text is not to
> have it inside the script, but in a separate file that the script can read.
Yes, this. I omitted this case in my initial reply, thought of it later,
but didn't want to respond to myself to add it.
The here document case that I showed is pretty close to that. It's
essentially a separate file that's inside the shell script, with
special delimiters around it. That's what here documents were designed
to be, after all.
Beyond that, it would help us *tremendously* to know what Budi's actual
goal is. (This should also have been on help-bash instead of bug-bash.)