From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13349 invoked from network); 3 Sep 1999 12:12:11 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Sep 1999 12:12:11 -0000 Received: (qmail 14507 invoked by alias); 3 Sep 1999 12:11:51 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2564 Received: (qmail 14498 invoked from network); 3 Sep 1999 12:11:50 -0000 Date: Fri, 3 Sep 1999 14:11:44 +0200 From: Hubert Canon To: Bart Schaefer Cc: zsh-users@sunsite.auc.dk Subject: Re: strange glob expansion Message-ID: <19990903141144.A4424@youkaidi.irisa.fr> References: <19990901101116.A8076@youkaidi.irisa.fr> <990901174608.ZM19896@candle.brasslantern.com> <19990902121532.A24349@youkaidi.irisa.fr> <990902150120.ZM24598@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.7us In-Reply-To: <990902150120.ZM24598@candle.brasslantern.com> Bart Schaefer écrivait : > On Sep 2, 12:15pm, Hubert Canon wrote: > } Not exactly. The { , } construct is somewhat different than ( | ) : > } for example, when one of the partterns fails, the whole expression > } fails. > > That's what `setopt cshnullglob` is for. I can't imagine why anyone would > not want that option when the shell is interactive; brace expansion is > practically useless without it. I use brace expansion with for constructs most or the time : for i in {foo,bar,hux}; do touch $i; done And 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. It a matter of taste, and that's why options a for. -- Hubert Canon