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: Chet Ramey
Subject: Re: [Help-bash] Filename Expansion: Find Utility vs Bash Shell Pattern Matching
Date: Wed, 17 Jun 2015 14:11:25 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 6/17/15 12:40 PM, Michael Convey wrote:
> 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? 

Bash does not use glob().  Bash uses an internal function named strmatch
that is derived from a GNU fnmatch implementation.  It provides
functionality similar to glob() but has extensions, as noted in my
previous message.

-- 
``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]