This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: possible bug with find


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@veritas.com

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]