GNU bug report logs - #14373
echo command

Previous Next

Package: coreutils;

Reported by: Cesar Celis Hernández <cesar.celis.h <at> gmail.com>

Date: Wed, 8 May 2013 23:05:04 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Blake <eblake <at> redhat.com>
To: Cesar Celis Hernández <cesar.celis.h <at> gmail.com>
Cc: 14373 <at> debbugs.gnu.org, castellanos.juan.pablo <at> gmail.com
Subject: bug#14373: echo command
Date: Wed, 08 May 2013 20:28:39 -0600
[Message part 1 (text/plain, inline)]
On 05/08/2013 04:30 PM, Cesar Celis Hernández wrote:
> I would like to use the echo options but it seems that is not working as
> the man echo says. So I am little bit lost here. How to use the echo
> options?

One other thing:

POSIX itself says that echo's options are inherently non-portable.  If
you are trying to use 'echo -n' or 'echo -e', you should REALLY consider
rewriting your script to use printf(1) instead, because then you won't
run into portability nightmares when your script is run on a different
platform (this is true whether you use the shell's builtin echo, or
whether you use 'env echo' to bypass the shell builtin and get whatever
is installed on PATH).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 12 years and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.