From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2252 invoked from network); 4 Oct 2001 04:23:53 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Oct 2001 04:23:53 -0000 Received: (qmail 27646 invoked by alias); 4 Oct 2001 04:23:42 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4339 Received: (qmail 27630 invoked from network); 4 Oct 2001 04:23:40 -0000 From: Bart Schaefer Message-Id: <1011004042305.ZM30162@candle.brasslantern.com> Date: Thu, 4 Oct 2001 04:23:05 +0000 In-Reply-To: <20011003142330.A16765@astaroth.sweth.net> Comments: In reply to Sweth Chandramouli "Re: compctl -g not working" (Oct 3, 2:23pm) References: <20011002225307.A13954@astaroth.sweth.net> <87adz976ru.fsf@ceramic.fifi.org> <20011002231841.B14325@astaroth.sweth.net> <1011003040449.ZM25370@candle.brasslantern.com> <20011003001256.B14675@astaroth.sweth.net> <1011003060441.ZM25764@candle.brasslantern.com> <20011003021524.A15356@astaroth.sweth.net> <1011003162422.ZM29481@candle.brasslantern.com> <20011003142330.A16765@astaroth.sweth.net> X-Mailer: Z-Mail (5.0.0 30July97) To: Sweth Chandramouli , zsh-users@sunsite.dk Subject: Re: compctl -g not working MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 3, 2:23pm, Sweth Chandramouli wrote: } Subject: Re: compctl -g not working } } } On Wed, Oct 03, 2001 at 04:24:22PM +0000, Bart Schaefer wrote: } > On Oct 3, 2:15am, Sweth Chandramouli wrote: } > } kshglob on } > } > That's it right there. `*(stuff)' means something different with kshglob. } } . Unsetting kshglob doesn't change the behaviour, either. I apologize; it's not kshglob that's the problem, it's shglob. SH_GLOB Disables the special meaning of `(', `|', `)' and '<' for globbing the result of parameter and command substitutions, and in some other places where the shell accepts patterns. This option is set by default if zsh is invoked as sh or ksh. One of the "some other places" is in compctl expressions. } So now, in addition to my original question, I'm also wondering why } I've been able to use the *(:qualifiers) syntax for so long given that } I've had kshglob set. Because you also have bare_glob_qual set, which I missed. That takes precedence over kshglob, so that *(stuff) at the -end- of a pattern is still treated as a * followed by qualifiers. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net