bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exclamation points in quoted strings


From: Ethan Glasser-Camp
Subject: Re: Exclamation points in quoted strings
Date: Sun, 14 Oct 2007 23:00:18 -0400
User-agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070828)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chet Ramey wrote:
> Not true, in general.  Posix specifies the characters the backslash
> can escape in double-quoted strings.  You happened to choose three of
> the five.
> 
> http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02
> _02_01
> 
>   The backslash shall retain its special meaning as an escape character
>   (see Escape Character (Backslash)) only when followed by one of the
>   following characters when considered special:
> 
>       $   `   "   \   <newline>

I think I see. So the backslash isn't counting as an escape character
here, and so passes through without being removed, but does inhibit
history expansion anyhow?

Thanks a lot! I still think the behavior is confusing, but at least I
know why it happens.

Ethan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHEtfChRlgoLPrRPwRAkonAKCsGDABs+TXOya432vkIc5z4ApEXgCg2fH9
vwlDCQgES6KEJ7jxdLHetYM=
=3FLD
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]