Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Quoted parameter parsing glitch
- X-seq: zsh-workers 15680
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Quoted parameter parsing glitch
- Date: Wed, 22 Aug 2001 22:25:37 +0400 (MSD)
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1010822165904.ZM24041@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author