From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26071 invoked from network); 5 May 2009 16:37:02 -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=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:37:02 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 30697 invoked from network); 5 May 2009 16:36:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 May 2009 16:36:57 -0000 Received: (qmail 28451 invoked by alias); 5 May 2009 16:36:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26930 Received: (qmail 28427 invoked from network); 5 May 2009 16:36:51 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 5 May 2009 16:36:51 -0000 Received: from clegg.madduck.net (clegg.madduck.net [193.242.105.96]) by bifrost.dotsrc.org (Postfix) with ESMTPS id B316C80590A3 for ; Tue, 5 May 2009 18:35:57 +0200 (CEST) Received: from piper.oerlikon.madduck.net (piper.oerlikon.madduck.net [IPv6:2001:41e0:ff12:0:211:2fff:fe6b:c869]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "piper.oerlikon.madduck.net", Issuer "CAcert Class 3 Root" (verified OK)) by clegg.madduck.net (postfix) with ESMTPS id 5D1571D409B; Tue, 5 May 2009 18:36:41 +0200 (CEST) Received: by piper.oerlikon.madduck.net (Postfix, from userid 1000) id 7AB5B462E; Tue, 5 May 2009 18:36:37 +0200 (CEST) Date: Tue, 5 May 2009 18:36:35 +0200 From: martin f krafft To: 526924@bugs.debian.org, zsh-workers@sunsite.dk Subject: Re: Bug#526924: zparseopts: should use lists as values in assoc array Message-ID: <20090505163635.GC2608@piper.oerlikon.madduck.net> References: <20090504130124.GA13947@piper.oerlikon.madduck.net> <20090505160528.GB19068@scru.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YD3LsXFS42OYHhNZ" Content-Disposition: inline In-Reply-To: <20090505160528.GB19068@scru.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.94.2/9329/Tue May 5 15:21:05 2009 on clegg.madduck.net X-Virus-Scanned: ClamAV 0.92.1/9328/Tue May 5 14:49:32 2009 on bifrost X-Virus-Status: Clean --YD3LsXFS42OYHhNZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable also sprach Clint Adams [2009.05.05.1805 +0200]: > Unfortunately we don't handle arrays as values of associate arrays > (yet?) but you can do something like Aha. pulse:~|master|% declare -A foo; foo[Clint]=3D(1 2 3) zsh: foo: attempt to set slice of associative array :( > set -- -a1 -a2; zparseopts 'a+:=3Darr'; print -l $arr >=20 > although this seems to set arr=3D(1 -a 2), which is not what I > expected to happen. Yeah, that's a bit weird, isn't it? Should I clone the bug? As for the original bug, maybe just insering $IFS[0] between elements would do? --=20 .''`. martin f. krafft Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduck http://vcs-pkg.org `- Debian - when you have better things to do than fixing systems --YD3LsXFS42OYHhNZ Content-Type: application/pgp-signature; name="digital_signature_gpg.asc" Content-Description: Digital signature (see http://martin-krafft.net/gpg/) Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoAaxIACgkQIgvIgzMMSnV0NACeJHNoNLXEZx4wlnVNY8YwHjQI HoUAn15L8O70/xUQDu5qwoHxhn9KGKjs =qOOG -----END PGP SIGNATURE----- --YD3LsXFS42OYHhNZ--