Eric Blake <ebl...@redhat.com> ha escrit: > This doesn't handle: []\a] as the set that recognizes '\\', 'a', or ']'. > Should it?
No, it should not. This function is applied to strings that failed the fnmatch_pattern_has_wildcards test, i.e. which are not (valid) globbing patterns. Your example, however, is a valid pattern and will be handled by fnmatch instead. Regards, Sergey