From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9543 invoked from network); 21 Mar 2005 01:05:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 21 Mar 2005 01:05:24 -0000 Received: (qmail 56375 invoked from network); 21 Mar 2005 01:05:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Mar 2005 01:05:18 -0000 Received: (qmail 15765 invoked by alias); 21 Mar 2005 01:05:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8618 Received: (qmail 15749 invoked from network); 21 Mar 2005 01:05:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 21 Mar 2005 01:05:08 -0000 Received: (qmail 55240 invoked from network); 21 Mar 2005 01:05:08 -0000 Received: from smtp.tecnet.com.uy (200.2.48.56) by a.mx.sunsite.dk with SMTP; 21 Mar 2005 01:05:03 -0000 Received: from terminus.empire.org.uy (r200-40-155-79-dialup.adsl.anteldata.net.uy [200.40.155.79]) by smtp.tecnet.com.uy (8.12.10/8.12.10) with ESMTP id j2L14iEM008677 for ; Sun, 20 Mar 2005 23:04:45 -0200 From: Toshiro To: zsh-users@sunsite.dk Subject: Re: zsh: no matches found Date: Sun, 20 Mar 2005 23:04:44 -0200 User-Agent: KMail/1.7.2 References: <200503202238.31745.toshiro@internet.com.uy> <20050321004759.GC5243@dan.emsphone.com> In-Reply-To: <20050321004759.GC5243@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503202304.44332.toshiro@internet.com.uy> X-TN_AV: 4 X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 > In the last episode (Mar 20), Toshiro said: > > Every time I type something like 'find . -name *log' I get the error: > > zsh: no matches found > > when there's no file matching the wildcard in the current directory. > > Is there any way to change this behaviour? (I don't want to escape every > > asterisk I type). > > alias find="noglob find" > > will work in this case. You don't want to do it globally, though, > since almost all commands expect the shell to expand wildcards for > them. Is this the only way? In other shells this is implemented in a very simple way, if the wildcard can be expanded, then it is expanded, otherwise an asterisk is sent as an argument to the application. Why is it so complex in zsh? What are the advantages of this implementation? Toshiro.