From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 478 invoked from network); 19 Aug 2006 18:31:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Aug 2006 18:31:23 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 16910 invoked from network); 19 Aug 2006 18:31:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Aug 2006 18:31:14 -0000 Received: (qmail 17335 invoked by alias); 19 Aug 2006 18:31:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22631 Received: (qmail 17326 invoked from network); 19 Aug 2006 18:31:11 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Aug 2006 18:31:11 -0000 Received: (qmail 16393 invoked from network); 19 Aug 2006 18:31:11 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 19 Aug 2006 18:31:10 -0000 Received: from torch.brasslantern.com ([71.121.0.226]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J4900BVU9Z12VP6@vms048.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 19 Aug 2006 12:30:38 -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 k7JHUaQQ028415; Sat, 19 Aug 2006 10:30:36 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k7JHUZ2Y028414; Sat, 19 Aug 2006 10:30:35 -0700 Date: Sat, 19 Aug 2006 10:30:33 -0700 From: Bart Schaefer Subject: Re: compaudit problem In-reply-to: <20060819115030.GE25959@localhost.localdomain> To: Alexey Tourbin , zsh-workers@sunsite.dk Message-id: <060819103035.ZM28413@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20060819115030.GE25959@localhost.localdomain> Comments: In reply to Alexey Tourbin "compaudit problem" (Aug 19, 3:50pm) On Aug 19, 3:50pm, Alexey Tourbin wrote: } } compaudit:50: bad substitution That would be on this line: local _compdir=${fpath[(r)*/$ZSH_VERSION/*]} } compinit:469: bad pattern: _i_test[=yes Interesting; that's on: _i_test[$_i_name]=yes } colors:39: bad substitution Maybe zsh has a problem with function names that begin with "co". :-) Seriously, this is pretty clearly a problem with subscript parsing. for k in ${(k)color}; do color[${color[$k]}]=$k; done } The error messages are issued at zsh startup. 4.3.2-20060619 snapshot } did not have such a problem. In all cases the parse of the subscript appears to have run one byte too far and consumed the ']'. What operating system and compiler are you using? I can't reproduce any of these with my build of 08/17 sources from CVS. I've tried compiling both with and without multibyte support. I've even tried forcing Test/D07multibyte.ztst to use ru_RU.UTF-8 as $LANG when running "make check". Does anything change if you run "zsh -o posix_identifiers"? Have you tried building with "configure --disable-multibyte"? Changes between 06/19 and 07/29 that may have affected this: * 22518: Src/params.c, Src/utils,c, Src/zsh.h, Test/B02typeset.ztst: Initial go at making parameter subscripts use multibyte characters. * 22524: Src/params.c, Test/D07multibyte.ztst: searchable subscripts with multibyte characters. * 22544: README, Doc/Zsh/options.yo, Src/builtin.c, Src/glob.c, Src/lex.c, Src/math.c, Src/module.c, Src/options.c, Src/params.c, Src/parse.c, Src/subst.c, Src/utils.c, Src/zsh.h, Src/ztype.h, Src/Zle/compcore.c, Src/Zle/zle_tricky.c, Test/D07multibyte.ztst: Improve use of ztype tests for multibyte characters. Add POSIX_IDENTIFIERS option to control allowability of multibyte alphanumeric characters in parameter and module names. * 22556: Doc/Zsh/builtins.yo, Functions/Zle/insert-composed-char, Src/builtin.c, Src/pattern.c, Src/subst.c, Src/utils.c, Src/zsh.h, Src/ztype.h, Src/Zle/zle.h, Src/Zle/zle_main.c, Test/D04parameter.ztst, Test/D07multibyte.ztst: Multibyte separators and delimiters. * unposted: Src/pattern.c, Src/utils.c: minor typos in 22556 found when MULTIBYTE_SUPPORT is not defined. * 22557: Doc/Zsh/options.yo, Misc/globtests, Src/options.c, Src/pattern.c, Test/D02glob.ztst, Test/D07multibyte.ztst: Turn on multibyte option by default for MULTIBYTE_SUPPORT and fix tests and patterns. --