Eric Blake wrote:
>> #    $ echo - e "\015\033[- 1Cxxx" starts string "xxx" at position 0, ok
> 
> Using "\015" as the argument to echo is not portable shell; you should use
> "\\015" or '\015' instead.

Using -e isn't portable shell either, as POSIX requires echo to
recognize no options, but instead treat them as arguments. printf would
be a much more portable solution (still escaping or quoting backslashes,
as Eric suggests).

-- 
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to