[issue35314] fnmatch failed with leading caret (^)
Josh Rosenberg
report at bugs.python.org
Mon Nov 26 18:10:36 EST 2018
Josh Rosenberg <shadowranger+python at gmail.com> added the comment:
Finished typing this while Serhiy was closing, but just for further explanation:
This isn't a bug. fnmatch provides "shell-style" wildcards, but that doesn't mean it supports every shell's extensions to the globbing syntax. It doesn't even claim support for full POSIX globbing syntax. The docs explicitly specify support for only four forms:
*
?
[seq]
[!seq]
There is no support for [^seq]; [^seq] isn't even part of POSIX globbing per glob(7):
"POSIX has declared the effect of a wildcard pattern "[^...]" to be undefined."
----------
nosy: +josh.r
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35314>
_______________________________________
More information about the Python-bugs-list
mailing list