Overview
| Artifact ID: | 296dd73a4def02a2ed178c7d9b2b409e0cab5726 |
|---|---|
| Ticket: | 1146047fffffffffffffffffffffffffffffffff
Unexpected [glob] result, when match is partly inaccessable |
| User & Date: | vincentdarley on 2005-02-26 22:09:53 |
Changes
- icomment:
Logged In: YES user_id=32170 The weird thing here is that I'm 99% sure that the effect you're seeing is in the generic code in tclFilename.c, here: /* * We do the recursion ourselves. This makes implementing * Tcl_FSMatchInDirectory for each filesystem much easier. */ *p = '\0'; TclNewObj(subdirsPtr); result = Tcl_FSMatchInDirectory(interp, subdirsPtr, pathPtr, pattern, &dirOnly); *p = save; if (result == TCL_OK) { int subdirc, i; Tcl_Obj **subdirv; result = Tcl_ListObjGetElements(interp, subdirsPtr, &subdirc, &subdirv); for (i=0; result==TCL_OK && i<subdirc; i++) { result = DoGlob(interp, matchesObj, separators, subdirv[i], 1, p+1, types); } } TclDecrRefCount(subdirsPtr); return result; (that's cvs HEAD, tcl 8.5, although it works the same for me with 8.4.7 on Windows). So it's hard to understand... Can you try some debugging of this?(i.e. set a breakpoint in the above code and see what's going on). - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"