bug-coreutils
[Top][All Lists]
Advanced

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

Re: echo -n?


From: Eric Blake
Subject: Re: echo -n?
Date: Mon, 15 Feb 2010 06:19:37 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to Alfred M. Szmidt on 2/15/2010 6:14 AM:
>    /bin/echo -e \\x2Dn
> 
> Alas, -e is not guaranteed by POSIX.

That's the whole point.  POSIX _guarantees_ that echo is non-portable with
options or with backslash, and that if you want to echo something starting
with -n, you must use something other than echo to achieve that effect.

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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