Chet, thank you. However, I find no reference to strmatch from 'man -K
strmatch' or from searching the Bash Reference Manual (
http://www.gnu.org/software/bash/manual/bashref.html). From the following
webpage, it appears that bash may use the GNU C Library's glob() function:
http://www.gnu.org/software/bash/manual/bashref.html
Thoughts?
On Wed, Jun 17, 2015 at 5:21 AM, Chet Ramey <address@hidden> wrote:
> 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/
>