bug-coreutils
[Top][All Lists]
Advanced

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

Re: echo


From: Eric Blake
Subject: Re: echo
Date: Sat, 23 Jan 2010 18:01:54 -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 alarm one / airfax security on 1/23/2010 5:49 PM:
> echo does not recognize -e, and since it defaults to -E, it will not 
> recognize the \ items (like \n, \v etc) instead it uses \ as an escape char.

Not a bug.  POSIX itself states that use of \ with echo results in
non-portable behavior, because not all implementations understand -e, and
among those that do, not all obey the POSIX rule that -e should be the
implied default.  Changing behavior (in either direction) would break
existing scripts.  Use printf instead.

Also, before reporting echo behavior issues, be sure to distinguish
whether you are using coreutils' echo (as in /bin/echo), or the shell's
builtin echo.

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