[pcre-dev] [Bug 2107] New: Please add support for parsing gl…

Kezdőlap
Üzenet törlése
Szerző: admin
Dátum:  
Címzett: pcre-dev
Új témák: [pcre-dev] [Bug 2107] Please add support for parsing glob(3) syntax
Tárgy: [pcre-dev] [Bug 2107] New: Please add support for parsing glob(3) syntax
https://bugs.exim.org/show_bug.cgi?id=2107

            Bug ID: 2107
           Summary: Please add support for parsing glob(3) syntax
           Product: PCRE
           Version: 10.23 (PCRE2)
          Hardware: All
                OS: All
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: avarab@???
                CC: pcre-dev@???


This is similar to my just-filed wishlist bug for parsing POSIX regular
expressions, see https://bugs.exim.org/show_bug.cgi?id=2106

Various programs might want to use PCRE v2 (such as Git), also have some need
to provide user-facing glob() semantics. Git does this via an old copy of
rsync's wildmatch().

As noted in a newly-published paper by Russ Cox it's common for glob() engines
to be more vulnerable to pathological patterns than is common with regular
expression engines: https://research.swtch.com/glob

It would be nice to have a function in PCRE to convert glob patterns to PCRE
regexes, e.g. Python implements a shimmy layer like this internally to
implement glob():
https://github.com/python/cpython/blob/master/Lib/fnmatch.py#L74

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