BASH and YES or ECHO cannot send "!"

wwp subscript at free.fr
Wed Dec 14 08:55:35 UTC 2005


Hello jdow,


On Tue, 13 Dec 2005 21:41:52 -0800 "jdow" <jdow at earthlink.net> wrote:

> 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.
[snip]

The point would be for a (new) user to know that ! is a special one :-),
that's not trivial.


Regards,

-- 
wwp




More information about the users mailing list