[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Broken parse on `'${'`
From: |
Eric Blake |
Subject: |
Re: Broken parse on `'${'` |
Date: |
Thu, 07 Jul 2005 22:02:19 -0600 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Lev Bishop on 7/7/2005 9:50 PM:
>>bash$ echo `echo '${'`
>>
>
> Actually, this is a bad example, because even if bash did parse
> correctly, there would be still an incomplete ${ substitution for the
> outer echo
No, because by POSIX XCU 2.6.3, "The results of command substitution shall
not be processed for further tilde expansion, parameter expansion, command
substitution, or arithmetic expansion." So the outer echo should behave
the same as if it had been invoked "echo \$\{", and print ${.
- --
Life is short - so eat dessert first!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCzfrL84KuGfSFAYARAmUpAKCh6SghuCkq2OPcoTFNKPhNj/RbGACaAiCe
N1fN/ETfifOPEWPWfsFfIgg=
=+F+l
-----END PGP SIGNATURE-----