This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: fix for glob with directories which contain brackets
Type: Stage:
Components: Extension Modules Versions: Python 2.2
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: progoth
Priority: normal Keywords: patch

Created on 2003-05-15 17:11 by progoth, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
globfix.patch progoth, 2003-05-15 17:11 patch to Lib\glob.py & Lib\fnmatch.py
Messages (1)
msg43806 - (view) Author: Steven Scott (progoth) Date: 2003-05-15 17:11
see bug #738631,
http://sourceforge.net/tracker/index.php?func=detail&aid=738361&group_id=5470&atid=105470

if you give glob a pattern with [...], it assumes it's
a file pattern.  this changes glob.py to add a \ in
front of the [ if a directory actually exists with the
bracket in it.

it also changes translate in fnmatch.py to take the
special case of \[ and add that straight to the regex
instead of trying to handle the shell pattern.
History
Date User Action Args
2022-04-10 16:08:47adminsetgithub: 38511
2003-05-15 17:11:32progothcreate