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: Eric Blake
Subject: Re: [Help-bash] Filename Expansion: Find Utility vs Bash Shell Pattern Matching
Date: Thu, 18 Jun 2015 09:18:10 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 06/17/2015 10:34 AM, Michael Convey wrote:
> Greg, thank you. Forgive my ignorance, but what does your output
> demonstrate? Are you proving that bash does not use fnmatch?

It doesn't matter whether bash directly uses fnmatch(), uses glob()
(which then uses fnmatch() under the hood), or uses an internal function
that has the same mandated behaviors.  Yes, this output proved that bash
doesn't pull in fnmatch() from libc, but that's okay (in my earlier
mail, I said bash globbing behaves 'as-if' fnmatch were used, at least
for standardized patterns, but the standard does not require that
fnmatch actually be used, only that the same results can be obtained).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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