From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11320 invoked from network); 28 May 2006 21:12:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.2 (2006-05-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.2 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 May 2006 21:12:32 -0000 Received: (qmail 35389 invoked from network); 28 May 2006 21:12:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 May 2006 21:12:24 -0000 Received: (qmail 17674 invoked by alias); 28 May 2006 21:12:18 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10335 Received: (qmail 17664 invoked from network); 28 May 2006 21:12:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 May 2006 21:12:17 -0000 Received: (qmail 34452 invoked from network); 28 May 2006 21:12:17 -0000 Received: from snaefell.rhi.hi.is (130.208.165.28) by a.mx.sunsite.dk with SMTP; 28 May 2006 21:12:17 -0000 Received: from jin.myrkraverk.com (a048.nemendur.hi.is [130.208.188.48]) by snaefell.rhi.hi.is (8.13.6/8.13.3) with ESMTP id k4SLC5vX003843 for ; Sun, 28 May 2006 21:12:05 GMT Received: from jin.myrkraverk.com (localhost.localdomain [127.0.0.1]) by jin.myrkraverk.com (8.13.1/8.13.1) with ESMTP id k4SLWewE012113 for ; Sun, 28 May 2006 21:32:40 GMT Received: (from myrkraverk@localhost) by jin.myrkraverk.com (8.13.1/8.13.1/Submit) id k4SLWe0F012112; Sun, 28 May 2006 21:32:40 GMT X-Authentication-Warning: jin.myrkraverk.com: myrkraverk set sender to johann@myrkraverk.com using -f Subject: Re: Keying arrays to names: is there an array of arrays? References: <44771E3E.9070102@ulpmm.u-strasbg.fr> <200605261540.k4QFeReG007573@news01.csr.com> <060527151044.ZM25448@torch.brasslantern.com> <060528111724.ZM29224@torch.brasslantern.com> From: "Johann 'Myrkraverk' Oskarsson" To: ZSH Users Date: Sun, 28 May 2006 21:32:40 +0000 In-Reply-To: <060528111724.ZM29224@torch.brasslantern.com> (Bart Schaefer's message of "Sun, 28 May 2006 11:17:24 -0700") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Bart Schaefer writes: > That's actually incorrect. The (z) option is already splitting the > value; you shouldn't need or want to split it again with (s: :). If > the setting of IFS is preventing (z) from working properly, that's > probably a bug, but in any case the workaround is to make IFS local. Well, all *I* know is that the s: : is needed -- at least without the local IFS solution. If someone can (and is willing) to convince me that's a bug (I don't yet understand all the flags involved in these expansions) I can cook up some nice test case/bug report. Thank you for the local IFS, that does look/appear to be cleaner. > If you're going to use these functions for hash access anyway, then > you might as well also use ${(q)2} instead of $2 in both of them, to > avoid issues with non-alphanumeric keys. Thank you. I'll keep that in mind if I run into the problem (dunno, if I will, I'm prototyping an app and the keys will be filenames). Johann -- johann myrkraverk com (you know the drill with the @ and .) I classify Outlook mail as spam, please use something else for private messages.