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.
arne
On Wed, 26 Feb 2014, Chris Angelico wrote:
On Wed, Feb 26, 2014 at 3:47 AM, Arne Goedeke el@laramies.com wrote:
My gentoo /bin/sh (which is bash) unlike dash generates a broken whitespace.h file from the current bin/getwhitespace.sh . I dont know which of the two is wrong here, but should we simply use numeric values instead of character escapes?
arne
There's a difference between bash and dash handling there. I suspect the easiest solution will be to switch to a heredoc, which - not being a quoted string itself - doesn't parse apostrophes. It's not as tidy as the other version, though.
Patch attached.
ChrisA