From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28830 invoked from network); 5 May 2009 16:09:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 May 2009 16:09:59 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 21838 invoked from network); 5 May 2009 16:09:53 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 May 2009 16:09:53 -0000 Received: (qmail 29666 invoked by alias); 5 May 2009 16:09:44 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26928 Received: (qmail 29651 invoked from network); 5 May 2009 16:09:43 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 5 May 2009 16:09:43 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 28CEA80590A3 for ; Tue, 5 May 2009 18:08:48 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id BD96410494D; Tue, 5 May 2009 16:09:38 +0000 (UTC) Date: Tue, 5 May 2009 16:09:38 +0000 From: Clint Adams To: martin f krafft , 526925@bugs.debian.org Cc: zsh-workers@sunsite.dk Subject: Re: Bug#526925: zparseopts: '+' option is being ignored with normal arrays Message-ID: <20090505160938.GC19068@scru.org> Mail-Followup-To: martin f krafft , 526925@bugs.debian.org, zsh-workers@sunsite.dk References: <20090504130438.GA14233@piper.oerlikon.madduck.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090504130438.GA14233@piper.oerlikon.madduck.net> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.92.1/9328/Tue May 5 14:49:32 2009 on bifrost X-Virus-Status: Clean On Mon, May 04, 2009 at 03:04:38PM +0200, martin f krafft wrote: > piper:~|master|% set -- -a1 -a2; zparseopts a+:=arr; echo $arr > 2 > > The + option is supposed to ensure that all occurrences get appended > to the array, not just the last one. Apparently, the same problems > occurs when a global array is used: > > piper:~|master|% set -- -a1 -a2; zparseopts -a arr a+:; echo $arr > 2 Oddly, here I get -a 1 -a 2 and the last issue was only because I forgot to use a -- after print -l.