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
Another alternative:
echo x-e | sed 's/^x//'
This is the way recommended by the autoconf manual:
[...] It is often possible to avoid this problem using 'echo "x$word"', taking the 'x' into account later in the pipe.
The one true way to print any arbitrary string:
printf "%s" "$vars"
After paying careful attention to the man page :)
SYSV3=1 /usr/bin/echo -e
works, on Solaris at least
I like that one using a herestring:
cat <<<"-e"
/bin/echo -e
works, but why?
[resin@nevada ~]$ which echo
/bin/echo
Another way:
echo -e' '
echo -e " \b-e"