From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29860 invoked from network); 5 May 2009 17:05:57 -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 17:05:57 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 42822 invoked from network); 5 May 2009 17:05:50 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 May 2009 17:05:50 -0000 Received: (qmail 13701 invoked by alias); 5 May 2009 17:05:44 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26931 Received: (qmail 13673 invoked from network); 5 May 2009 17:05:43 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 5 May 2009 17:05:43 -0000 Received: from vms173011pub.verizon.net (vms173011pub.verizon.net [206.46.173.11]) by bifrost.dotsrc.org (Postfix) with ESMTP id D503A80590A3 for ; Tue, 5 May 2009 19:04:48 +0200 (CEST) Received: from torch.brasslantern.com ([96.249.201.13]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KJ600K7WKSLYM6K@vms173011.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 05 May 2009 12:05:15 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id n45H57tT012481; Tue, 05 May 2009 10:05:08 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n45H57kt012480; Tue, 05 May 2009 10:05:07 -0700 From: Bart Schaefer Message-id: <090505100507.ZM12479@torch.brasslantern.com> Date: Tue, 05 May 2009 10:05:06 -0700 In-reply-to: <20090505160528.GB19068@scru.org> Comments: In reply to Clint Adams "Re: Bug#526924: zparseopts: should use lists as values in assoc array" (May 5, 4:05pm) References: <20090504130124.GA13947@piper.oerlikon.madduck.net> <20090505160528.GB19068@scru.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Clint Adams , martin f krafft , 526924@bugs.debian.org Subject: Re: Bug#526924: zparseopts: should use lists as values in assoc array Cc: zsh-workers@sunsite.dk MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.92.1/9330/Tue May 5 18:18:50 2009 on bifrost X-Virus-Status: Clean On May 5, 4:05pm, Clint Adams wrote: } } set -- -a1 -a2; zparseopts 'a+:=arr'; print -l $arr } } although this seems to set arr=(1 -a 2), which is not what I } expected to happen. The parameter is set to (-a 1 -a 2), but "print -l $arr" is consuming the first -a as an option to print.