Artifacts Associated With Ticket 910525ffffffffff
Ticket change [b69f72887a] (rid 125452) by nobody on 2004-03-05 15:38:24:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This is observed with Tcl8.4.4 under Mac OSX 10.2.3: The statement [glob -path /priv *] fails to find the directory /private. Instead an error is raised: "no files matched glob pattern "*"".
- foundin initialized to: "obsolete: 8.4.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "37. File System"
- title initialized to: "[glob -path /priv *] doesn't find /private"
- type initialized to: "Bug"
Ticket change [6044f3ef11] (rid 115961) by vincentdarley on 2004-03-06 02:07:47:
- icomment:
Logged In: YES user_id=32170 I notice that this also fails on Windows: % glob -path C:/Win * no files matched glob pattern "*" It seems like the handling of 'toplevel' paths is buggy... Thanks for the report.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [e0f1b5ef8c] (rid 87359) by vincentdarley on 2004-03-08 01:52:37:
- icomment:
Logged In: YES user_id=32170 Please test this patch: diff -u -r1.47 tclFileName.c --- tclFileName.c 5 Feb 2004 20:25:32 -0000 1.47 +++ tclFileName.c 7 Mar 2004 18:42:44 -0000 @@ -1745,6 +1745,13 @@ /* Have to split off the end */ Tcl_DStringAppend(&pref, last, first+pathlength-last); pathOrDir = Tcl_NewStringObj(first, last-first-1); + /* + * We must ensure there's at least one path separator + * in the prefix, even if it's just "/" or "C:/". + */ + if (strpbrk(Tcl_GetString(pathOrDir), "\\/") == NULL) { + Tcl_AppendToObj(pathOrDir, last-1, 1); + } } /* Need to quote 'prefix' */ Tcl_DStringInit(&prefix); Should work on Windows and Unix, I think (but only tested on the former). - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [fadbfca4ab] (rid 91957) by vincentdarley on 2004-03-09 20:07:29:
- status changed to: "Closed"
Ticket change [e95be25a84] (rid 104810) by vincentdarley on 2004-03-09 20:07:30:
- closedate changed to: "2004-03-09T13:07:30"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 Fixed in cvs HEAD and 8.4 branch (so will be in 8.4.7 if there is ever such a release).
- login: "vincentdarley"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "vincentdarley"