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: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051214/f9fb8c94/attachment-0001.sig>


More information about the fedora-list mailing list