[Python-bugs-list] [Bug #114334] glob does not handle set coplementation ([^ ... ]) properly
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 14 Sep 2000 10:07:18 -0700
Bug #114334, was updated on 2000-Sep-13 04:46
Here is a current snapshot of the bug.
Project: Python
Category: Modules
Status: Closed
Resolution: Invalid
Bug Group: Not a Bug
Priority: 5
Summary: glob does not handle set coplementation ([^ ... ]) properly
Details: The glob function in the glob module does not handle the set complementation correctly.
Example:
glob('*[^C].cc')
should return all .cc file that do NOT have a 'C' before the dot. Instead it returns all files that DO
have a C before the dot.
Python: v 1.5.2
Platform: HP-UX
Follow-Ups:
Date: 2000-Sep-14 10:07
By: fdrake
Comment:
This is not a bug. Bash accepts either "!" or "^" as the set-complement character, but ash only accepts "!". sh on FreeBSD also only accepts "!". I think we can safely say that the acceptance of "^" in bash is non-standard behavior, so I'm declaring that this isn't a bug.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=114334&group_id=5470