echo "-e" doesn't print anything
Posted
by wheleph
on Stack Overflow
See other posts from Stack Overflow
or by wheleph
Published on 2008-11-26T11:03:22Z
Indexed on
2010/04/06
4:13 UTC
Read the original article
Hit count: 215
bash
I'm using GNU bash, version 3.00.15(1)-release (x86_64-redhat-linux-gnu). And this command:
echo "-e"
doesn't print anything. I guess this is because "-e" is one of a valid options of echo command because echo "-n" and echo "-E" (the other two options) also produce empty strings.
The question is how to escape the sequence "-e" for echo to get the natural output ("-e").
© Stack Overflow or respective owner