From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14582 invoked from network); 22 Aug 2001 18:25:50 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Aug 2001 18:25:50 -0000 Received: (qmail 29009 invoked by alias); 22 Aug 2001 18:25:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15680 Received: (qmail 28998 invoked from network); 22 Aug 2001 18:25:42 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: Borsenkow Andrej To: Bart Schaefer Cc: zsh-workers@sunsite.dk Date: Wed, 22 Aug 2001 22:25:37 +0400 (MSD) X-X-Sender: Subject: Re: Quoted parameter parsing glitch In-Reply-To: <1010822165904.ZM24041@candle.brasslantern.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 22 Aug 2001, Bart Schaefer wrote: > > } Shell should not hang, but please note it is invalid as per POSIX. > } Double-quotes and braces must match. > > Zsh 4 (and ksh) is supposed to accept double-quotes inside ${...} inside > double-quotes; the braces act as an extra level of quoting so that the > inner quotes can nest in the outer ones. I don't know what POSIX says > about that. > As I said - they must match. "${foo:-""}" is valid but "${foo:-"}" - not. Neither is "${foo:-\"}". You cannot quote braces or double quotes in this case. They must match (opening - closing). -andrej