From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7542 invoked from network); 6 Jan 2003 12:54:47 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 6 Jan 2003 12:54:47 -0000 Received: (qmail 1969 invoked by alias); 6 Jan 2003 12:54:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5651 Received: (qmail 1956 invoked from network); 6 Jan 2003 12:54:32 -0000 From: "Bart Schaefer" Message-Id: <1030106125404.ZM4660@candle.brasslantern.com> Date: Mon, 6 Jan 2003 12:54:04 +0000 In-Reply-To: <15897.15986.562636.628562@fisica.ufpr.br> Comments: In reply to Carlos Carvalho "Re: aliases not getting expanded inside functions?" (Jan 6, 6:29am) References: <15893.44217.393956.262362@fisica.ufpr.br> <20030103164552.A28966@globnix.org> <15893.50996.646711.184945@fisica.ufpr.br> <20030103184455.A5692@globnix.org> <15893.53780.524763.695176@fisica.ufpr.br> <20030103185407.GA11836@fysh.org> <15897.15986.562636.628562@fisica.ufpr.br> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: aliases not getting expanded inside functions? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 6, 6:29am, Carlos Carvalho wrote: } } % a[1]=name1 a[2]=name2 etc. } % b[1]=b_name1 b[2]=b_name2 etc. } } and then to do the transfer } } for ((i=1; i< number-of-elements; i++)) { } : ${(P)b[i]::=$a[i]} } } I presume you mean ${(P)${b[i]}::=${(P)${a[i]}}}, but I can't figure out _why_ you'd want to do that. This sort of question often results from a sequence of events along the lines of: Problem X is encountered. Solution Y is considered. Attempt to implement Y fails at detail Z. The list is asked how to accomplish Z. Nearly as often, the right thing is instead to ask the list how to solve problem X, because there's a better solution than Y. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net