Re: [Hampshire] Regular Expressions

Top Page

Reply to this message
Author: Simon Reap (work)
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Regular Expressions
Simon Reap (work) wrote:
>>
> reaps@saki:~$ rm ~/.bash_history
> reaps@saki:~$ exec bash
> reaps@saki:~$ echo "Don't do that!"
> bash: !": event not found
> reaps@saki:~$ bash -version
> GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)
> Copyright (C) 2005 Free Software Foundation, Inc.
> reaps@saki:~$
>
> That's one of the reasons I don't like bash!

To be fair to bash, it's actually the "!" which is causing the problem:

reaps@saki:~$ echo "Don't do that"\!
Don't do that!
reaps@saki:~$

Simon

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.