From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27970 invoked from network); 16 Aug 2003 17:07:58 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Aug 2003 17:07:58 -0000 Received: (qmail 13744 invoked by alias); 16 Aug 2003 17:07:42 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6471 Received: (qmail 13726 invoked from network); 16 Aug 2003 17:07:42 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 16 Aug 2003 17:07:42 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.233.107] by sunsite.dk (MessageWall 1.0.8) with SMTP; 16 Aug 2003 17:7:41 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h7GH7dk05620 for zsh-users@sunsite.dk; Sat, 16 Aug 2003 10:07:39 -0700 From: Bart Schaefer Message-Id: <1030816170739.ZM5619@candle.brasslantern.com> Date: Sat, 16 Aug 2003 17:07:39 +0000 In-Reply-To: <20030816065935.GA31520@bebop.thehutt.org> Comments: In reply to Jerry A! "Help w/compctl & ksh_glob" (Aug 16, 2:59am) References: <20030816065935.GA31520@bebop.thehutt.org> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: Help w/compctl & ksh_glob MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 16, 2:59am, Jerry A! wrote: } Subject: Help w/compctl & ksh_glob } } I'm trying to setup some simple completions under zsh 4.0.6 using } 'compctl' and 'emulate ksh'. Any particular reason you're not using compinit? } compctl -/g '*.+(b{oo,ar,az}|quu|txt)' foo ^^^^^^^^^^ The documentation for 'compctl -g' may have part of the answer: [...] More than one pattern may be given separated by blanks. (Note that brace expansion is _not_ part of globbing. Use the syntax `(either|or)' to match alternatives.) (Of course you need +(oo|ar|az) with KSH_GLOB set.) However, the real problem is something to do with the SH_GLOB option, which is set by 'emulate ksh'. If I 'unsetopt SH_GLOB' then even as (incorrectly) written your compctl offers me directories and .txt files. This SH_GLOB problem doesn't affect globbing outside of compctl as far as I can tell.