Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
On 6/17/15 8:01 AM, Greg Wooledge wrote:
> On Tue, Jun 16, 2015 at 02:41:41PM -0700, Michael Convey wrote:
>> 1. ???Similar to the 'find' utility, d
>> oes bash use the fnmatch
>> ???()???
>> library or some other mechanism for
>> ??? ???
>> filename expansion and pattern matching?
>
> imadev:/var/tmp/bash/bash-4.3$ grep fnmatch *.[ch]
> imadev:/var/tmp/bash/bash-4.3$ grep fnmatch */*.[ch]
> imadev:/var/tmp/bash/bash-4.3$ grep fnmatch */*
> cross-build/cygwin32.cache:ac_cv_func_fnmatch=${ac_cv_func_fnmatch='no'}
Bash uses a function named `strmatch', which is derived from the original
GNU fnmatch and extended to handle Posix matching syntax, extended
globbing operators, and internationalization.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/