Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Lev Bishop 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/