Eric Blake wrote on 07/17/2009 09:09 PM:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Huang Tao on 7/17/2009 9:46 AM:
I'm not sure whether it is a bug
how can i echo the text string "-e" barely ( or "-n", "-E")
i tried
$echo "-e"
$echo '-e'
and some other inputs, all of which produced no outputs.

Instead of using echo (which POSIX itself admits is fraught with
portability problems), use printf:

printf -- '-e\n'


or:
echo -n "-" ; echo "e"

bjd


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to