Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: value of a key pointed by (P) ?
- X-seq: zsh-users 10722
- From: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: value of a key pointed by (P) ?
- Date: Fri, 15 Sep 2006 22:17:05 +0200
- In-reply-to: <20060915185628.4641deb7.pws@xxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060915174734.GA14349@xxxxxxxxxxxxxxxxxx> <20060915185628.4641deb7.pws@xxxxxxx>
le 15/09/2006,
Peter Stephenson nous �ivait :
> The expression generated by ${(P)b} is passed back as an ordinary array,
isn't it a bug? do you think it's possible to fix it in future versions
of zsh ?
> so it isn't indexed properly by the $k.
it's clear now ... thanks for explain, Peter
>
> I don't think there's an easy answer; you have to resort to something like
> eval print '${'$b'[$k]}'
i've done it but it isn't as sexy as the way i tried to write.
regards
mc
--
téléphone : 03.90.24.00.19
courriel : marc.chantreux@xxxxxxxxxxxxxxxxxx
---------------------------------------
Messages sorted by:
Reverse Date,
Date,
Thread,
Author