From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15831 invoked from network); 25 May 2006 14:43:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 May 2006 14:43:03 -0000 Received: (qmail 29395 invoked from network); 25 May 2006 14:42:56 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 May 2006 14:42:56 -0000 Received: (qmail 15863 invoked by alias); 25 May 2006 14:42:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10302 Received: (qmail 15847 invoked from network); 25 May 2006 14:42:44 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 May 2006 14:42:44 -0000 Received: (qmail 27297 invoked from network); 25 May 2006 14:42:42 -0000 Received: from mailhost.u-strasbg.fr (130.79.200.153) by a.mx.sunsite.dk with SMTP; 25 May 2006 14:42:39 -0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.13.6/jtpda-5.5pre1) with ESMTP id k4PEgcFW085705 for ; Thu, 25 May 2006 16:42:38 +0200 (CEST) Received: from xpeerience.u-strasbg.fr (xpeerience.u-strasbg.fr [130.79.188.35]) by baal.u-strasbg.fr (8.13.6/jtpda-5.5pre1) with ESMTP id k4PEgbcT088199 for ; Thu, 25 May 2006 16:42:38 +0200 (CEST) Received: by xpeerience.u-strasbg.fr (Postfix, from userid 1000) id 0866ED2C21; Thu, 25 May 2006 16:43:04 +0200 (CEST) Date: Thu, 25 May 2006 16:43:04 +0200 From: Marc Chantreux To: zsh-users Subject: Re: values of associations pointed by P flag Message-ID: <20060525144304.GA21136@ulpmm.u-strasbg.fr> References: <20060522205404.GA24028@ulpmm.u-strasbg.fr> <060523081402.ZM15072@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <060523081402.ZM15072@torch.brasslantern.com> User-Agent: Mutt/1.5.11+cvs20060403 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (mailhost.u-strasbg.fr [IPv6:2001:660:2402::153]); Thu, 25 May 2006 16:42:38 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.2/1483/Thu May 25 15:55:40 2006 on mr3.u-strasbg.fr X-Virus-Status: Clean le 23/05/2006, Bart Schaefer nous =E9crivait : > } I would like to write a function that compare 2 associative arrays. >=20 > 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. >=20 > 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 !=20 regards, mc