From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25228 invoked from network); 7 Nov 1999 00:48:05 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Nov 1999 00:48:05 -0000 Received: (qmail 3051 invoked by alias); 7 Nov 1999 00:47:52 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2730 Received: (qmail 3044 invoked from network); 7 Nov 1999 00:47:51 -0000 From: "Bart Schaefer" Message-Id: <991107004714.ZM3221@candle.brasslantern.com> Date: Sun, 7 Nov 1999 00:47:14 +0000 In-Reply-To: <19991106205457.A3361@one.sttr.net> Comments: In reply to Stefan Troeger "KSH style globbing" (Nov 6, 8:54pm) References: <19991106205457.A3361@one.sttr.net> X-Mailer: Z-Mail (5.0.0 30July97) To: Stefan Troeger , zsh-users@sunsite.auc.dk Subject: Re: KSH style globbing MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 6, 8:54pm, Stefan Troeger wrote: } Subject: KSH style globbing } } setopt KSH_GLOB } ls !(*a*) } } zsh: number expected } } What am I doing wrong? You need setopt KSH_GLOB NO_BARE_GLOB_QUAL Otherwise, the trailing parens are interpreted as a glob qualifier before they have a chance to be considered as a ksh pattern. This ought to be documented better. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com