help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Filename Expansion: Find Utility vs Bash Shell Pattern M


From: Michael Convey
Subject: Re: [Help-bash] Filename Expansion: Find Utility vs Bash Shell Pattern Matching
Date: Wed, 17 Jun 2015 09:40:22 -0700

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/
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]