Overview
| Artifact ID: | cdef202501a44713bbc64d1e3457583d0e45247b |
|---|---|
| Ticket: | 219258ffffffffffffffffffffffffffffffffff
Glob doesn't deal properly with * and [ |
| User & Date: | vincentdarley on 2001-08-24 22:16:52 |
Changes
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=32170 This is, I believe, nothing to do with TclpMatchFilesTypes. Since we are matching a literal string here, 'glob' falls through to the end of TclDoGlob which simply checks for existence of the file, using Tcl_FSAccess (or since the patch was checked in yesterday) Tcl_FSLStat. However, looking at the implementation of stat on WinTcl, I see this: /* * Eliminate file names containing wildcard characters, or subsequent * call to FindFirstFile() will expand them, matching some other file. */ transPtr = Tcl_FSGetTranslatedPath(NULL, pathPtr); if (transPtr == NULL || (strpbrk(Tcl_GetString (transPtr), "?*") != NULL)) { Tcl_SetErrno(ENOENT); return -1; } i.e. we purposefully disallow ourselves from statting any file with '*' or '?' in the name. Since this bug is reported against older versions of Tcl, it seems as if 'access' has the same limitation (although it doesn't seem to be explicitly coded in Tcl's core). I assume this is therefore a limitation of the Win32 api's we use, and therefore cannot be fixed (at least without changing those api's). I'm therefore assigning this to Jeff, since he seems to know something about the 'real Win32' stuff (and I don't) - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"