Chris Angelico wrote:
>>>+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.

I'd beg to differ.  <<'EOM' and <<\EOM should be identical in behaviour.
AFAIK *any* kind of quoting of the marker behind << will result in the
behaviour you describe.
-- 
Stephen.
  • 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