bug-coreutils
[Top][All Lists]
Advanced

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

Re: bug in echo


From: Eric Blake
Subject: Re: bug in echo
Date: Tue, 23 Feb 2010 06:02:13 -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 habib kassem on 2/23/2010 5:48 AM:
> Hello,
> when using echo I found the following bug:
> 
> echo "-n"
> echo "-e"
> echo "-E"
> echo  -e "-e"

Not a bug.  POSIX itself states that echo is inherently non-portable when
given any arguments that start with - or which contain \.  You are better
off using printf.  See also this thread, earlier this month:
http://lists.gnu.org/archive/html/bug-coreutils/2010-02/msg00115.html

-- 
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]