From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dns.primenet.com.au (dns.primenet.com.au [203.24.36.40]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id SAA02441 for ; Wed, 28 Aug 1996 18:38:25 +1000 (EST) Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by dns.primenet.com.au (8.7.5/8.7.3) with ESMTP id SAA01386 for ; Wed, 28 Aug 1996 18:38:21 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id EAA04085; Wed, 28 Aug 1996 04:25:17 -0400 (EDT) Resent-Date: Wed, 28 Aug 1996 04:19:11 -0400 (EDT) Sender: davidk@lysator.liu.se To: zsh-users@math.gatech.edu Subject: Re: something like set nonomatch References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Face: D]XdQ0Lvl](98/?#ke.70P&g#NMUCf!)RIE}'k~=+N;#R2uW:$?JwjbU*jlrOh<0}LlKrwJ '+U#I_Mg|YVK\yHGVs`iy-^RoC(Sq'H3Bv*&'aL`!\Sk?[ Y^soDZ`fP_My5y282q2T Date: 28 Aug 1996 10:17:33 +0200 In-Reply-To: Stefan Janke's message of 28 Aug 1996 08:34:38 +0200 Message-ID: X-Mailer: Gnus v5.2.37/Emacs 19.32 Resent-Message-ID: <"XBTFD.0.r-.-309o"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/390 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Stefan Janke writes: > hallo, > > exist for the zsh (version 3.0) something like set nonomatch for the > csh. I need this for doing things like: > alias suber='rm *.toc *~ *.aux' > > ciao and thanx stefan I guess that you mean that you don't want an error message if a glob pattern matches nothing. There is an option CSH_NULL_GLOB (use setopt CSH_NULL_GLOB) that seems to make zsh behave like csh. >>From man zshoptions: CSH_NULL_GLOB If a pattern for filename generation has no matches, delete the pattern from the argument list; do not report an error unless all the pat- terns in a command have no matches. Overrides NULLGLOB. There is also an option NULL_GLOB NULL_GLOB (-G) If a pattern for filename generation has no matches, delete the pattern from the argument list instead of reporting an error. Overrides NO_NOMATCH. But there is also a way to set NULL_GLOB locally for just one glob pattern. alias suber='rm *.toc(N) *~(N) *.aux(N)' Should do the trick. -- David Kågedal Lysator Academic Computer Society davidk@lysator.liu.se http://www.lysator.liu.se/~davidk/ +46-13 17 65 89