Simply replacing echo by printf also works and _should_ be portable. At
least posix does not say anything about 'implementation defined'.
arne
On Wed, 26 Feb 2014, Chris Angelico wrote:
On Wed, Feb 26, 2014 at 5:08 AM, Arne Goedeke <[email protected]> wrote:
I wasnt sure whats a portable fix. Interestingly, any backslash
in an argument to echo is undefined behavior, according to
posix, so I suppose echo ought to be avoided in this case.
I'm not 100% sure about the portability of single-quoted heredoc
syntax, so that might need to be checked.
BTW, need to strip off a pile of those backslashes. Alternative patch attached.
ChrisA