This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug glob/23926] fnmatch with FNM_PATHNAME is not POSIX compliant


https://sourceware.org/bugzilla/show_bug.cgi?id=23926

--- Comment #8 from Cyker Way <cykerway at gmail dot com> ---
POSIX fnmatch function page
<http://pubs.opengroup.org/onlinepubs/9699919799.2008edition/functions/fnmatch.html>
doesn't mention 2.13.3#1 directly, but it clearly referred to both 2.13.1 and
2.13.2.

Then, the first sentence of 2.13.3 says:

The rules described so far in Patterns Matching a Single Character and Patterns
Matching Multiple Characters **are qualified by the following rules that
apply** when pattern matching notation is used for filename expansion...

This essentially means the rules of 2.13.1 and 2.13.2 are limited by additional
requirements that must be satisfied for pathname expansion. If you don't
satisfy these additional requirements, then you are not conforming to these
rules (and POSIX in general). So your argument holds only if you claim
FNM_PATHNAME is not for pathname expansion, which IMHO doesn't have much
ground. I don't flip this thread as UNCONFIRMED again, but I still strongly
believe this is indeed a bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]