Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: value of a key pointed by (P) ?



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