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 08:21:49 -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 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]