delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/16/18:11:10

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A64CF7A.A02AB7B8@veritas.com>
Date: Tue, 16 Jan 2001 14:47:22 -0800
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Andrew Markebo <flognat AT flognat DOT myip DOT org>
CC: Timothee Besset <timo AT qeradiant DOT com>, cygwin AT cygwin DOT com
Subject: Re: possible bug with find
References: <5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20010116140432 DOT 023f98a0 AT spc DOT sugar-land DOT omnes DOT net> <m3k87vtcul DOT fsf AT master DOT athome>

Andrew Markebo wrote:
> 
....
> 
> Bash seems to have begun with a smart habit of deciding when to glob,
> and not to glob..
> 

Bourne shell and its derivatives:  If the glob pattern does not match a file, pass it to the program and let it decide what to do.  OK for 'find', other programs generate a
'No such file or directory' error.

C shell and its derivatives:  If the glob pattern does not match a file, always generate an error (program name followed by "No match.") and never run the program.

Esoterica such as the above, and a great introduction to shell scripting, can be found in the book "The UNIX Programming Environment" by Kernighan and Pike.  Almost all the
content also applies to Cygwin.

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019