Just learned the hard way that "echo" inside a shell may or may-not interpret backslashes as special. Porting software always has surprises.
@gustedt echo -e is not portable either, and echo -n is not even a conforming extension.
-
-
@RichFelker yes, the test probably needs refinement, but the idea simply is to give it an "-e" if it accepts it as an argument. oh well. -
@gustedt Adapted version of my fix to give -e behavior, should be portable: echo () { printf %b\\n "$*" ; } -
@RichFelker unfortunately not, the shells don't agree on the interpretation of backslashed sequences ... -
@RichFelker with the %b format specifier
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.