| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <42CDFACB.6090203@byu.net> |
| Date: | Thu, 07 Jul 2005 22:02:19 -0600 |
| From: | Eric Blake <ebb9 AT byu DOT net> |
| User-Agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
| MIME-Version: | 1.0 |
| To: | Lev Bishop <lev DOT bishop AT gmail DOT com> |
| CC: | cygwin AT cygwin DOT com, bug-bash AT gnu DOT org |
| Subject: | Re: Broken parse on `'${'` |
| References: | <42CDE346 DOT 30908 AT byu DOT net> <ba40711f050707205050f15f3e AT mail DOT gmail DOT com> |
| In-Reply-To: | <ba40711f050707205050f15f3e@mail.gmail.com> |
| X-IsSubscribed: | yes |
-----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 AT byu DOT 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-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |