From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4464 invoked from network); 19 Oct 2004 14:18:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Oct 2004 14:18:36 -0000 Received: (qmail 54348 invoked from network); 19 Oct 2004 14:18:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Oct 2004 14:18:30 -0000 Received: (qmail 11754 invoked by alias); 19 Oct 2004 14:17:56 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20507 Received: (qmail 11699 invoked from network); 19 Oct 2004 14:17:54 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Oct 2004 14:17:54 -0000 Received: (qmail 52982 invoked from network); 19 Oct 2004 14:17:19 -0000 Received: from master.altlinux.ru (62.118.250.235) by a.mx.sunsite.dk with SMTP; 19 Oct 2004 14:17:18 -0000 Received: from solemn.turbinal.org (localhost.localdomain [127.0.0.1]) by master.altlinux.ru (Postfix) with ESMTP id 937ABE49C0 for ; Tue, 19 Oct 2004 18:17:13 +0400 (MSD) Received: by solemn.turbinal.org (Postfix, from userid 500) id 9622951D9B; Tue, 19 Oct 2004 18:15:10 +0400 (MSD) Date: Tue, 19 Oct 2004 18:15:10 +0400 From: Alexey Tourbin To: zsh-workers@sunsite.dk Subject: Re: bug: _store_cache and ksh arrays Message-ID: <20041019141510.GN2017@solemn.turbinal.org> Mail-Followup-To: zsh-workers@sunsite.dk References: <20041019024827.GI2017@solemn.turbinal.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uMPAU7A2Er6+wvsD" Content-Disposition: inline In-Reply-To: X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.5 required=6.0 tests=BAYES_44,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.5 --uMPAU7A2Er6+wvsD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 18, 2004 at 09:54:21PM -0700, Bart Schaefer wrote: > _store_cache is meant to be called from the completion system functions, > which are meant to execute only with the setopts in the $_comp_options > array in effect. Nearly all functions in the completion system assume > those settings and make no effort to work with arbitrary combinations of > setopts. Actually _comp_options neither set no unset KSH_TYPESET along with MAGIC_EQUAL_SUBST. Hence the problem. Here is a patch. Anyway I can't understand why "$var=3D( ${(kv@Pqq)^^var} )" should give only one element for array with those options set. --- zsh-4.2.1/Completion/compinit- 2004-08-13 10:22:16 +0000 +++ zsh-4.2.1/Completion/compinit 2004-10-19 14:06:27 +0000 @@ -145,6 +145,8 @@ _comp_options=3D( NO_aliases NO_errexit NO_octalzeroes + NO_kshtypeset + NO_magicequalsubst ) =20 # And this one should be `eval'ed at the beginning of every entry point --uMPAU7A2Er6+wvsD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBdSFufBKgtDjnu0YRAv41AKCc2H/xyZD1BqBBzXgzxYdNOsL98wCg4mXb 4DWj9mFYGdklmQLiBjdut7g= =VlbS -----END PGP SIGNATURE----- --uMPAU7A2Er6+wvsD--