From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19149 invoked from network); 26 May 2006 15:58:59 -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.4 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; 26 May 2006 15:58:59 -0000 Received: (qmail 71838 invoked from network); 26 May 2006 15:58:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 May 2006 15:58:52 -0000 Received: (qmail 3159 invoked by alias); 26 May 2006 15:58:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10316 Received: (qmail 3150 invoked from network); 26 May 2006 15:58:44 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 26 May 2006 15:58:44 -0000 Received: (qmail 70820 invoked from network); 26 May 2006 15:58:44 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 26 May 2006 15:58:44 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly21c.srv.mailcontrol.com (MailControl) with ESMTP id k4QFwUAa007642 for ; Fri, 26 May 2006 16:58:31 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Fri, 26 May 2006 16:57:50 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.4/8.13.4) with ESMTP id k4QFwUq6007946 for ; Fri, 26 May 2006 16:58:30 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.4/8.13.4/Submit) with ESMTP id k4QFwU4Y007940 for ; Fri, 26 May 2006 16:58:30 +0100 Message-Id: <200605261558.k4QFwU4Y007940@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk Subject: Re: Keying arrays to names: is there an array of arrays? In-reply-to: <200605261540.k4QFeReG007573@news01.csr.com> References: <44771E3E.9070102@ulpmm.u-strasbg.fr> <200605261540.k4QFeReG007573@news01.csr.com> Comments: In-reply-to Peter Stephenson message dated "Fri, 26 May 2006 16:40:27 +0100." Date: Fri, 26 May 2006 16:58:30 +0100 From: Peter Stephenson X-OriginalArrivalTime: 26 May 2006 15:57:50.0858 (UTC) FILETIME=[241BFEA0:01C680DD] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-00-01 (www.mailcontrol.com) on 10.67.0.131 Peter Stephenson wrote: > % array=(one 'two three' '"four five six"') > % typeset -A hash > % array=(${(q)array}) > % hash[key]="${array}" > % array=(${(Q)${(z)hash[key]}}) > % print -r $array ^^ Sorry, should be -rl for the output shown. > one > two three > "four five six" -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php