Skip to content
Tcl Source Code Artifact [f4850fdf58]
Login

Artifact [f4850fdf58]

Artifact f4850fdf58b3a1d06c55fcd9da92776f5b2ecac5:

Ticket change [f4850fdf58] - New ticket [558742ffffffffff|558742ffff] <i>tcltest creates &#39;tmp&#39; in current dir</i>. by vincentdarley on 2002-05-21 15:56:48.
D 2002-05-21T15:56:48
J assignee dkf
J cmimetype text/plain
J comment The\stcltest\spackage\stries\sto\screate\sa\sfile\s'tmp'\sin\s\nthe\spwd.\s\sThis\sis\sparticularly\sproblematic\swhen\s'pwd'\s\nis\sinside\sa\svfs\s(which\scan\seasily\shappen\ssince\stcltest\s\nis\sactually\sa\spart\sof\sdefault\stclkit\sexecutables).\n\nFurthermore,\sunder\ssome\scircumstances,\seven\sif\s\nthe\s'tmp'\sfile\sis\screated,\sit\sis\snot\scleaned\sup.\n\nThe\sproblematic\scode\sis\saround\sline\s1179\sof\s\ntcltest.tcl:\n\n\s\s\s\stestConstraint\sstdio\s0\n\s\s\s\scatch\s{\ncatch\s{file\sdelete\s-force\stmp}\nset\sf\s[open\stmp\sw]\nputs\s$f\s{\n\s\s\s\sexit\n}\nclose\s$f\n\nset\sf\s[open\s"|[list\s[interpreter]\stmp]"\sr]\nclose\s$f\n\ntestConstraint\sstdio\s1\n\s\s\s\s}\n\s\s\s\scatch\s{file\sdelete\s-force\stmp}\n\nProblems\sobserved\sare:\n\n(i)\sassumption\sthat\s'tmp'\sis\sin\sthe\snative\sfilesystem\s\nand\stherefore\sthat\s'open\s|'\swill\swork.\n(ii)\sassumption\sthat\s'puts\s$f\s...'\swill\snot\sfail\s--\sif\s\nit\sdoes,\sthen\s'$f'\sis\snever\sclosed.\n\nIt\swould\sbe\sbest\sif\s'tmp'\swas\sput\sin\s$env(TEMP),\s...\n\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter vincentdarley
J subsystem 34.\stcltest\sPackage
J title tcltest\screates\s'tmp'\sin\scurrent\sdir
J type Bug
K 558742ffffffffffffffffffffffffffffffffff
U vincentdarley
Z 02a9edc52b8c2a6f6656cf90e1f52e24