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.)