Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: values of associations pointed by P flag
- X-seq: zsh-users 10302
- From: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: values of associations pointed by P flag
- Date: Thu, 25 May 2006 16:43:04 +0200
- In-reply-to: <060523081402.ZM15072@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060522205404.GA24028@xxxxxxxxxxxxxxxxxx> <060523081402.ZM15072@xxxxxxxxxxxxxxxxxxxxxx>
le 23/05/2006,
Bart Schaefer nous écrivait :
> } I would like to write a function that compare 2 associative arrays.
>
> I take it this means you'd like to write a function that takes the
> names of 2 associative arrays as arguments and compares the contents
> of those associations.
yes .. that's the fact.
> } I can use eval but the P flag looks better.
>
> It might, but you misunderstand how it works. (And the doc could be
> clearer, but it all stems from the fact that zsh parameter expansion
> works by passing values of parameters, not references to parameters.)
enlightenment ! thanks for your detailed explanation and exemple : my
code works fine now !
regards,
mc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author