Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH]: Revamped (P) expansion flag
- X-seq: zsh-workers 27569
- From: Michael Hwang <michael.a.hwang@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH]: Revamped (P) expansion flag
- Date: Tue, 5 Jan 2010 17:52:47 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=9xEwti/OqjfGXTc5uKLq03UZCQHclLkciglT/9itASk=; b=KlSmQZIVI66jojFwrWbNijKioOeHJYqfOgyj9Cp149z1M/rbSfoN4MTJBLy6Hb9YGl n6iHxiRR1bZSKXwSm82GLUtOdW0fFLOigvgv4MYga87CqK3OEVovoXdIod7n9XqM2aTQ JrA1+XmEN1C74r0Fs9veJ5FYx5RjxtR7rFQb8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mb1tlC6j9wG9ECD+kwvScH6dmv1pCxpFvKq+kZjRp3UpJLW1zOY9kYdxEqa/GSCjZ3 Yk0CHBcLpMtV4YC+/9i4pyWGycaosnFvnE4QPZZeUbJz5BqnWpd8qtJRkrpP8mLs1OYm 1k0WwTTD/OzcjiqaeJ7/Fmm0D/6xiWvWlSML0=
- In-reply-to: <20100105172012.3f1d628c@news01>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <22a0ef080912261448x3d14b301yc4082a924cd760d8@xxxxxxxxxxxxxx> <20100105172012.3f1d628c@news01>
On Tue, Jan 5, 2010 at 12:20 PM, Peter Stephenson <pws@xxxxxxx> wrote:
> With the two patches I know about (the second a single line), the test
> suite now fails at this test in D06subscript.ztst:
On Sat, Dec 26, 2009 at 5:48 PM, Michael Hwang
<michael.a.hwang@xxxxxxxxx> wrote:
> On the more buggy-ish side:
>
> % STRING='zsh is awesome!'
> % STR='zsh sucks... :-/'
> % REF=STRING
> % print ${(P)REF[1,3]}
> zsh sucks... :-/
>
> As ${(P)REF} is really ${(P)${REF}}, one would think that that
> ${(P)REF[1,3]} would be expanded as ${(P)${REF}[1,3]}. But as you can
> see, it is instead expanded as ${(P)${REF[1,3]}}.
I believe that the behavior that test relies on should be considered a
bug. What do you think?
Michael Hwang
Messages sorted by:
Reverse Date,
Date,
Thread,
Author