From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13241 invoked from network); 25 Oct 2004 13:15:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Oct 2004 13:15:52 -0000 Received: (qmail 97198 invoked from network); 25 Oct 2004 13:15:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Oct 2004 13:15:41 -0000 Received: (qmail 15879 invoked by alias); 25 Oct 2004 13:14:53 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8113 Received: (qmail 15860 invoked from network); 25 Oct 2004 13:14:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Oct 2004 13:14:51 -0000 Received: (qmail 95915 invoked from network); 25 Oct 2004 13:14:51 -0000 Received: from mail1.messagelabs.com (212.125.75.4) by a.mx.sunsite.dk with SMTP; 25 Oct 2004 13:14:48 -0000 X-VirusChecked: Checked X-Env-Sender: Stephane.Chazelas@morse.com X-Msg-Ref: server-18.tower-1.messagelabs.com!1098710087!22299894!1 X-StarScan-Version: 5.4.2; banners=-,-,- X-Originating-IP: [195.152.231.104] Received: (qmail 19797 invoked from network); 25 Oct 2004 13:14:47 -0000 Received: from unknown (HELO GIS-MAIL-01.morse.corp.wan) (195.152.231.104) by server-18.tower-1.messagelabs.com with SMTP; 25 Oct 2004 13:14:47 -0000 Received: from frhdtmp102861 (frhdtmp102861.morse.corp.wan [10.25.10.16]) by GIS-MAIL-01.morse.corp.wan with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id VCVNMNSA; Mon, 25 Oct 2004 14:14:46 +0100 Date: Mon, 25 Oct 2004 14:14:46 +0100 From: Stephane Chazelas To: zsh-users@sunsite.dk, Nikolai Weibull Subject: Re: Associative Arrays Message-ID: <20041025131446.GA2144@frhdtmp102861.morse.corp.wan> Mail-Followup-To: zsh-users@sunsite.dk, Nikolai Weibull References: <20041020195348.GJ11322@puritan.pcp.ath.cx> <20041021110526.GE1740@frhdtmp102861.morse.corp.wan> <20041021123835.GF9224@puritan.pcp.ath.cx> <20041022123233.GF1720@frhdtmp102861.morse.corp.wan> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Fri, Oct 22, 2004 at 08:07:13AM -0700, Bart Schaefer wrote: [...] > The behaviour of arguments after -A NAME or +A NAME depends on > whether the option KSH_ARRAYS is set. If it is not set, all > arguments following NAME are treated as values for the array, > regardless of their form. If the option is set, normal option > processing continues at that point; only regular arguments are > treated as values for the array. This means that > > set -A array -x -- foo > > sets array to `-x - foo' if KSH_ARRAYS is not set, but sets the > array to foo and turns on the option `-x' if it is set. [...] You're right. I was wrong. I had tested: set -A a -- foo echo $a (but not in ksh compatibility mode) and set -A a -e foo echo $a And of course, the "-e" was grabbed by echo... Sorry for that, Stephane