BASH and YES or ECHO cannot send "!"

Steffen Kluge kluge at fujitsu.com.au
Wed Dec 14 03:12:05 UTC 2005


On Tue, 2005-12-13 at 11:40 -0600, Mike McCarty wrote:
> $ echo "Hello there\!"
> Hello there\!

The double quotes take the shine off the backslash, so to speak, and
make it ordinary.

> $ echo 'Hello there!'
> Hello there!

$ echo Hello there\!

would have worked, too.

Cheers
Steffen.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20051214/f9fb8c94/attachment-0002.bin 


More information about the users mailing list