BASH and YES or ECHO cannot send "!"

jdow jdow at earthlink.net
Wed Dec 14 05:41:52 UTC 2005


From: "Synister Syntax" <synistersyntaxlist at gmail.com>

> echo "Hello World! "
> 
> also works...
> 
>     Just don't have !" on top of each other like that.  An extra
> spcae should't get in the way?
> Hope this adds to your research.

Of coure, "!" is an annoyance. "&" can kill a machine.
  echo this will destroy your machine & rm -rf /
is not quite the same thing as
  echo "This won't destroy your machine & rm -rf /"

ALWAYS be careful about quoting when using special characters.

{o.o}

> On 12/13/05, Steffen Kluge <kluge at fujitsu.com.au> wrote:
>> 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.
>>
>>
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.1 (GNU/Linux)
>>
>> iD8DBQBDn42Fqm99Rhir+FkRAq/oAKC247eZi+N2VB2kk+aolJhJtyNBcQCgh6+T
>> 4L2mFRZcJMJWC9tHZfO+GME=
>> =WxTQ
>> -----END PGP SIGNATURE-----
>>
>>
>> --
>> fedora-list mailing list
>> fedora-list at redhat.com
>> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>>
>>
> 
> 
> --
> Regards,
> SynSyn
> Netowork Manager, Server Administrator, Security Specialist
> (http://www.teamtrinix.com)
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list




More information about the fedora-list mailing list