bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BKR01- problems detected with: chmod, xterm and linux-console


From: Micah Cowan
Subject: Re: BKR01- problems detected with: chmod, xterm and linux-console
Date: Fri, 04 May 2007 13:17:01 -0700
User-agent: Thunderbird 1.5.0.10 (X11/20070403)

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]