On 15 Jun, Greg Wooledge wrote:

>> IMHO it's more intuitive to write
>>   "this is the tag\!"
> 
> Yes, yes, yes!  It *would* be more intuitive.  But it does not work.
> 
> jekyll:~$ echo $BASH_VERSION
> 2.05a.0(1)-release
> jekyll:~$ echo "this is the tag!"
> bash: !": event not found
> jekyll:~$ echo "this is the tag\!"
> this is the tag\!
> jekyll:~$ echo "this is the tag"\!
> this is the tag!
> 
> This was all in the bug report I sent, and this is precisely what the
> bash maintainers have decided they will *not* fix.

Thank god, I don't use bash.

> All other shells I've tried handle this in the intuitive way; only

tcsh and zsh work in the intuitive way.

> bash keeps the backslash before ! inside double quotes.

No, I just noticed that the bourne shell FreeBSD uses (an enhanced ash,
I think) also prints the backslash, but without it, it prints the
exclamation mark. But the exclamation mark isn't a special character in
this context, so it is intuitive again.

How does the bourne shell (or POSIX) compatibility mode of bash handle
it?

Bye,
Alexander.

-- 
                   It's not a bug, it's tradition!

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7

_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to