On Wed, Feb 26, 2014 at 1:00 PM, Stephen R. van den Berg <[email protected]> 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
  • bash/dash Arne Goedeke
    • Re: bash/dash Chris Angelico
      • Re: bash/... Arne Goedeke
        • Re: b... Chris Angelico
          • R... Arne Goedeke
            • ... Chris Angelico
              • ... Per Hedbor () @ Pike (-) developers forum
                • ... Henrik Grubbstr�m (Lysator) @ Pike (-) developers forum
          • R... Stephen R. van den Berg
            • ... Chris Angelico
              • ... Stephen R. van den Berg

Reply via email to