From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14249 invoked from network); 3 Sep 1999 14:16:24 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Sep 1999 14:16:24 -0000 Received: (qmail 24055 invoked by alias); 3 Sep 1999 14:16:02 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2565 Received: (qmail 24038 invoked from network); 3 Sep 1999 14:16:01 -0000 From: "Bart Schaefer" Message-Id: <990903141545.ZM26249@candle.brasslantern.com> Date: Fri, 3 Sep 1999 14:15:45 +0000 In-Reply-To: <19990903141144.A4424@youkaidi.irisa.fr> Comments: In reply to Hubert Canon "Re: strange glob expansion" (Sep 3, 2:11pm) References: <19990901101116.A8076@youkaidi.irisa.fr> <990901174608.ZM19896@candle.brasslantern.com> <19990902121532.A24349@youkaidi.irisa.fr> <990902150120.ZM24598@candle.brasslantern.com> <19990903141144.A4424@youkaidi.irisa.fr> X-Mailer: Z-Mail (5.0.0 30July97) To: Hubert Canon Subject: Re: strange glob expansion Cc: zsh-users@sunsite.auc.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 3, 2:11pm, Hubert Canon wrote: } Subject: Re: strange glob expansion } } I don't like setopt cshnullglob because it gives strange behaviour } when I use a single globbing pattern which fails. Like : } } grep foo*bar | less } } If foo*bar matches nothing, it's exactly like : grep | less } which stops, waiting for input. No, that's not true. There are two options: NULL_GLOB behaves as you just described. CSH_NULL_GLOB will return "no match" in that instance and not start the grep; it removes patterns silently only when there is more than one pattern and at least one pattern matches a file. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com