From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22619 invoked from network); 28 Jun 2004 22:54:46 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.85) by ns1.primenet.com.au with SMTP; 28 Jun 2004 22:54:46 -0000 Received: (qmail 29441 invoked from network); 29 Jun 2004 00:04:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Jun 2004 00:04:42 -0000 Received: (qmail 24384 invoked by alias); 28 Jun 2004 22:54:02 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7610 Received: (qmail 24374 invoked from network); 28 Jun 2004 22:54:01 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.85) by sunsite.dk with SMTP; 28 Jun 2004 22:54:01 -0000 Received: (qmail 28498 invoked from network); 29 Jun 2004 00:04:15 -0000 Received: from erouter0.it-datacntr.louisville.edu (136.165.5.194) by a.mx.sunsite.dk with SMTP; 29 Jun 2004 00:04:04 -0000 Received: from [192.168.1.35] (tiger.slug.louisville.edu [136.165.47.43]) by erouter0.it-datacntr.louisville.edu (Postfix) with ESMTP id 3ED9B1133 for ; Mon, 28 Jun 2004 18:53:49 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: <20040628085300.GA1443@DervishD> References: <2A3E94EA-C7E3-11D8-9C37-000502631FBD@columbia.edu> <20040627104222.GA237@DervishD> <6D3CE77E-C88C-11D8-A1EE-000A95EDC31A@louisville.edu> <20040628085300.GA1443@DervishD> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <04955BBD-C956-11D8-ADCC-000A95EDC31A@louisville.edu> Content-Transfer-Encoding: 7bit From: Aaron Davies Subject: Re: Suppressing "no matches found" Glob Message? Date: Mon, 28 Jun 2004 18:53:48 -0400 To: zsh-users@sunsite.dk X-Mailer: Apple Mail (2.618) X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=1.0 required=6.0 tests=FROM_ENDS_IN_NUMS autolearn=no version=2.63 X-Spam-Hits: 1.0 On Jun 28, 2004, at 4:53 AM, DervishD wrote: > Aaron Davies dixit: > >>> Yes, change your pattern to, for example 'ls **/*(.N)'. The 'N' >>> means 'set option NULL_GLOB' for this pattern. This removes the >>> error. >> >> NULL_GLOB seems to remove the pattern entirely, so it no longer finds >> plain files only. > > NULL_GLOB makes zsh deleting the pattern if no match is found, > but happens that 'ls', without options, prints all files and dirs in > the current directory. > >> I think what I want may be NOMATCH instead, but I >> can't figure out a code to set that. Is there one? > > Don't know, but you don't want NOMATCH set: it *prints* an error > if a match is not found. If you unset it, what you are going to have > is the pattern as-is, so 'ls' will complain saying that '**/*(.)' > doesn't exist. That wouldn't be so bad, actually; I could redirect that error to /dev/null. So, does anyone know how to set that option in a pattern? -- Aaron Davies agdavi01@louisville.edu