Skip to content

Commit 0b2d3ba

Browse files
committed
mention fnmatch(3) in impl comparison
1 parent 8c3f5f4 commit 0b2d3ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,9 @@ other interpretation of the glob pattern. Thus, a pattern like
236236
`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded
237237
**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
238238
checked for validity. Since those two are valid, matching proceeds.
239+
240+
Note that `fnmatch(3)` in libc is an extremely naive string comparison
241+
matcher, which does not do anything special for slashes. This library is
242+
designed to be used in glob searching and file walkers, and so it does do
243+
special things with `/`. Thus, `foo*` will not match `foo/bar` in this
244+
library, even though it would in `fnmatch(3)`.

0 commit comments

Comments
 (0)