Skip to content
Tcl Source Code Artifact [7b9ad97585]
Login

Artifact [7b9ad97585]

Artifact 7b9ad97585304619b28f44562c46cb461baed7d9:

Ticket change [7b9ad97585] - Ticket [1750300fffffffff|1750300fff] <i>Unexpected [glob] result, when types list is empty</i> status still Open with 4 other changes by georgeps on 2007-12-15 04:54:53.
D 2007-12-15T04:54:53
J icomment Logged\sIn:\sYES\s\nuser_id=585068\nOriginator:\sNO\n\nCool\sbug:\n%\scd\s/\s\s\n%\sglob\s-types\s{}\s--\sTMP\stmp\nTMP\stmp\n%\sfile\sexists\sTMP\n0\n%\sglob\s--\sTMP\stmp\ntmp\n\nHere's\sa\spatch\sthat\sfixes\sit:\nIndex:\stclFileName.c\n===================================================================\nRCS\sfile:\s/cvsroot/tcl/tcl/generic/tclFileName.c,v\nretrieving\srevision\s1.86\ndiff\s-u\s-r1.86\stclFileName.c\n---\stclFileName.c\s\s\s\s\s\s\s13\sDec\s2007\s15:23:17\s-0000\s\s\s\s\s\s1.86\n+++\stclFileName.c\s\s\s\s\s\s\s14\sDec\s2007\s21:46:51\s-0000\n@@\s-1412,6\s+1412,11\s@@\n\s\s\s\s\s\s\s\s\s*/\n\s\n\s\s\s\s\s\s\s\sTcl_ListObjLength(interp,\stypePtr,\s&length);\n+\n+\s\s\s\s\s\s\sif\s(length\s<=\s0)\s{\n+\s\s\s\s\s\s\s\s\s\s\s\sgoto\sskipTypes;\n+\s\s\s\s\s\s\s}\s\s\s\s\s\s\s\n+\n\s\s\s\s\s\s\s\sglobTypes\s=\s(Tcl_GlobTypeData*)\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sTclStackAlloc(interp,sizeof(Tcl_GlobTypeData));\n\s\s\s\s\s\s\s\sglobTypes->type\s=\s0;\n@@\s-1529,6\s+1534,7\s@@\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\s}\n\s\n+skipTypes:\n\s\s\s\s\s/*\n\s\s\s\s\s\s*\sNow\swe\sperform\sthe\sactual\sglob\sbelow.\sThis\smay\sinvolve\sjoining\stogether\n\s\s\s\s\s\s*\sthe\spattern\sarguments,\sdealing\swith\sparticular\sfile\stypes\setc.\sWe\suse\sa\n\n
J login georgeps
J mimetype text/plain
J username georgeps
K 1750300fffffffffffffffffffffffffffffffff
U georgeps
Z f1a54978eae149638f759468a21ee52e