<i>Incorrect treatment of mounted file by glob.</i> status still Open with 4 other changes
by
.
D 2003-09-04T16:54:26
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nAnother\scomplication\s--\swhat\sif\swe\smount\ssomething\snot\sover\nitself,\sbut\ssimply\sinto\sa\spreviously\snon-existent\sfile,\sthen\n'glob'\swon't\seven\slist\sit\sat\sall.\n\nGiven\sthis\sproblem,\sthe\sbest\s(only?)\ssolution\sI\scan\sthink\sof\nis\sthat\sthe\s*generic*\sfunction\sTcl_FSMatchInDirectory\sin\ntclIOUtil.c\sshould\scheck\swhether\sany\svfs's\sare\sregistered\n*inside*\sthe\sdirectory\sbeing\slisted,\sand\sif\sthis\sis\strue,\nmodify\sthe\sresult\sappropriately.\sThis\swould\salso\shave\san\nadvantage\sof\sthe\sperformance\simpact\sbeing\ssmall,\sprovided\swe\ncan\sdo\sthat\stest\srelatively\seasily.\s\sIt\salso\shas\sthe\sbenefit\nof\sbeing\sa\sreasonably\selegant\ssolution.\n\nUnfortunately,\sthere\sis\sno\scurrent\sAPI\sby\swhich\sa\sfilesystem\ncan\sbe\sasked\s"Do\syou\shave\sany\smounts\sin\sdirectory\s'foo'?",\nalthough\sit\sis\sin\ssome\ssense\sa\sgeneralisation\sof\sthe\nTcl_FSListVolumes\sfunction.\sThis\smeans\sto\ssolve\sthe\sproblem,\nwe\swill\sneed\sto\sdo\ssomething\slike\sincrement\nTCL_FILESYSTEM_VERSION_1,\sand\soverload\sTcl_FSListVolumes\sas\na\snew\sfunction\s(Tcl_FSListMounts)\swhich\stakes\sas\sa\sparameter\na\sTcl_Obj\scontaining\sa\sdirectory.\sIf\sthat\sdirectory\sis\snull,\nthe\sfunction\sbehaves\slike\sthe\sold\sTcl_FSListVolumes,\sand\notherwise\sit\sasks\sthe\sfilesystem\sfor\sa\slist\sof\sall\smatching\nmounts\sin\sthe\sgiven\sdirectory.\n\nSo,\sthis\sfix\sis\sonly\sreally\spossible\sin\sTcl\s8.5\sand\swill\nrequire\sa\sTIP.\sWhile\swe're\sat\sit,\stherefore,\swe\smight\swish\nto\sconsider\sother\sfilesystem\senhancements.\n\nAt\sthis\spoint\sI\sshould\ssay\sI\shave\sother\spriorities\swhich\nmean\sI\sdo\snot\sexpect\sto\ssee\smyself\sas\sthe\sprimary\sauthor\sof\nany\ssuch\stip...\n\nVince.\n\n\n\n\n\n
J login vincentdarley
J mimetype text/plain
J username vincentdarley
K 800106ffffffffffffffffffffffffffffffffff
U vincentdarley
Z e3f41f58bba4e026cd5749ee79425157