From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27030 invoked from network); 21 Mar 2005 16:45:59 -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 16:45:59 -0000 Received: (qmail 54747 invoked from network); 21 Mar 2005 16:45:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Mar 2005 16:45:54 -0000 Received: (qmail 11745 invoked by alias); 21 Mar 2005 16:45:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8624 Received: (qmail 11735 invoked from network); 21 Mar 2005 16:45:44 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 21 Mar 2005 16:45:44 -0000 Received: (qmail 53507 invoked from network); 21 Mar 2005 16:45:44 -0000 Received: from dsl3-63-249-88-2.cruzio.com (HELO dot.blorf.net) (63.249.88.2) by a.mx.sunsite.dk with SMTP; 21 Mar 2005 16:45:40 -0000 Received: by dot.blorf.net (Postfix, from userid 1000) id B17CAAB99; Mon, 21 Mar 2005 08:45:38 -0800 (PST) Date: Mon, 21 Mar 2005 08:45:38 -0800 From: Wayne Davison To: Toshiro Cc: zsh-users@sunsite.dk Subject: Re: zsh: no matches found Message-ID: <20050321164538.GA15569@blorf.net> References: <200503202238.31745.toshiro@internet.com.uy> <20050321004759.GC5243@dan.emsphone.com> <200503202304.44332.toshiro@internet.com.uy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200503202304.44332.toshiro@internet.com.uy> User-Agent: Mutt/1.5.6+20040907i 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 On Sun, Mar 20, 2005 at 11:04:44PM -0200, Toshiro wrote: > 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. Yes, other shells do it that way, but that has its downsides. For instance, if you run "touch *,c" it's better to get "no match" rather than creating a useless *,c file. Or if you type a command like this: "rsync -avP *.html *.shmtl *.php host:/dest/" (note the misspelling), it is better to get a "no match" error right away than to get a single open-error embedded in all the output that you then have to figure out at the end of the transfer. I much prefer to simply put single quotes around any wild-carded file names that should not be expanded rather than to configure the shell to include a wildcard that didn't match anything. YMMV, of course, but if you give it a try, you may find that you come to prefer it as well. ..wayne..