From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27958 invoked from network); 16 Aug 2003 16:06:40 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Aug 2003 16:06:40 -0000 Received: (qmail 29753 invoked by alias); 16 Aug 2003 16:06:29 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6470 Received: (qmail 29742 invoked from network); 16 Aug 2003 16:06:29 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 16 Aug 2003 16:06:29 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [193.109.254.211] by sunsite.dk (MessageWall 1.0.8) with SMTP; 16 Aug 2003 16:6:28 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-11.tower-36.messagelabs.com!1061049987!26274 X-StarScan-Version: 5.0.7; banners=-,-,- Received: (qmail 5843 invoked from network); 16 Aug 2003 16:06:27 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-11.tower-36.messagelabs.com with SMTP; 16 Aug 2003 16:06:27 -0000 Received: from gmcs3.local ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id h7GG6Qxq001555; Sat, 16 Aug 2003 17:06:26 +0100 Received: from gmcs3.local (localhost [127.0.0.1]) by gmcs3.local (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h7GG8AJ06776; Sat, 16 Aug 2003 18:08:10 +0200 cc: zsh-users@sunsite.dk X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20030816065935.GA31520@bebop.thehutt.org> From: Oliver Kiddle References: <20030816065935.GA31520@bebop.thehutt.org> To: Jerry A! Subject: Re: Help w/compctl & ksh_glob Date: Sat, 16 Aug 2003 18:08:10 +0200 Message-ID: <6774.1061050090@gmcs3.local> Jerry A! wrote: > I'm trying to setup some simple completions under zsh 4.0.6 using > 'compctl' and 'emulate ksh'. Nothing fancy, just matching programs to > extensions. For example: > > compctl -/g '*.+(b{oo,ar,az}|quu|txt)' foo > > This ends up not working, nothing gets expanded. I've tried replacing Your problem is with your attempted use of a brace expansion. Brace expansions are a different thing from filename generation. They are just expanded instead of matched against existing files. Try this instead: compctl -/g '*.+(b@(oo|ar|az)|quu|txt)' foo Oliver