On Wed, Feb 26, 2014 at 1:00 PM, Stephen R. van den Berg srb@cuci.nl wrote:
Chris Angelico wrote:
I'm not 100% sure about the portability of single-quoted heredoc syntax, so that might need to be checked.
+cat <<'EOM'
What I've always used (since the dawn of time), is cat <<\EOM Which is perfectly portable, backward and forward from 1985 to 2014 and back.
Yes, that version is portable, but it's slightly different. Putting the end marker in single quotes makes the entire string unparsed, same as a single-quoted string would otherwise be.
ChrisA