Skip to content
Tcl Source Code Artifact [296dd73a4d]
Login

Artifact [296dd73a4d]

Artifact 296dd73a4def02a2ed178c7d9b2b409e0cab5726:

Ticket change [296dd73a4d] - Ticket [1146047fffffffff|1146047fff] <i>Unexpected [glob] result, when match is partly inaccessable</i> status still Open with 4 other changes by vincentdarley on 2005-02-26 22:09:53.
D 2005-02-26T22:09:53
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nThe\sweird\sthing\shere\sis\sthat\sI'm\s99%\ssure\sthat\sthe\seffect\nyou're\sseeing\sis\sin\sthe\sgeneric\scode\sin\stclFilename.c,\shere:\n\n/*\n\s*\sWe\sdo\sthe\srecursion\sourselves.\s\sThis\smakes\simplementing\n\s*\sTcl_FSMatchInDirectory\sfor\seach\sfilesystem\smuch\seasier.\n\s*/\n\n*p\s=\s'\\0';\nTclNewObj(subdirsPtr);\nresult\s=\sTcl_FSMatchInDirectory(interp,\ssubdirsPtr,\spathPtr,\npattern,\s&dirOnly);\n*p\s=\ssave;\nif\s(result\s==\sTCL_OK)\s{\n\s\s\s\sint\ssubdirc,\si;\n\s\s\s\sTcl_Obj\s**subdirv;\n\n\s\s\s\sresult\s=\sTcl_ListObjGetElements(interp,\ssubdirsPtr,\n\s\s\s\s&subdirc,\s&subdirv);\n\s\s\s\sfor\s(i=0;\sresult==TCL_OK\s&&\si<subdirc;\si++)\s{\nresult\s=\sDoGlob(interp,\smatchesObj,\sseparators,\ssubdirv[i],\n1,\sp+1,\stypes);\n\s\s\s\s}\n}\nTclDecrRefCount(subdirsPtr);\nreturn\sresult;\n\n(that's\scvs\sHEAD,\stcl\s8.5,\salthough\sit\sworks\sthe\ssame\sfor\sme\nwith\s8.4.7\son\sWindows).\n\nSo\sit's\shard\sto\sunderstand...\s\sCan\syou\stry\ssome\sdebugging\sof\nthis?(i.e.\sset\sa\sbreakpoint\sin\sthe\sabove\scode\sand\ssee\swhat's\ngoing\son).\n\n\n\n\n\n
J login vincentdarley
J mimetype text/plain
J username vincentdarley
K 1146047fffffffffffffffffffffffffffffffff
U vincentdarley
Z 36be77e8962f92a578a49246041437d2