Skip to content
Tcl Source Code Artifact [2f62b265e9]
Login

Artifact [2f62b265e9]

Artifact 2f62b265e972c87f7d1c6840094d76d480464ae2:

Ticket change [2f62b265e9] - Ticket [3445787fffffffff|3445787fff] <i>Exposed file command broken in safe interps</i> status still Open with 4 other changes by johannes-kuhn on 2012-01-09 02:26:42.
D 2012-01-09T02:26:42
J icomment The\sfile\scommand\sis\snow\sa\snamespace\sensemble\s(see\s[namespace\sensemble\sconfigure\sfile]).\nAll\ssubcommands\sof\sfile\sare\snow\shidden\swith\sa\sname\slike\stcl:file:atime.\s(Original\sname\swith\sall\snamespace\sseperators\s(::)\sreplaced\sby\sa\ssingle\scolon(:))\n\nThis\schange\sdoes\sin\sfact\sbreak\sold\sscripts\sthat\suses\s[interp\sinvokehidden\s$interp\sfile].\n\nThe\ssafe\sbase\suses\sthe\strused\sinterp's\sfile\scommand,\sthis\sis\sok\sbecause\sthe\sexposed\scommand\sdoes\snot\shave\sany\sspecial\streatment\sdepending\son\sthe\sinterp,\sunlike\s[file\schannels]\switch\sdisplays\sall\sopen\schannels\sthat\sthis\sinterp\shas\saccess\sto.\n\nThis\smight\sprobably\sonly\sa\ssmall\samout\sof\sscripts\sthat\sactually\s1)\sdoes\snot\suse\sthe\ssafe\sbase\sand\s2)\suse\ssafe\sinterps\swith\s(partialy)\sexposed\sfile\scommands.\n\nMy\sadvise\sis:\smake\s[interp\shide]\snamespace\saware,\sand\swhen\sa\shidden\snamespace\senseble\sis\scalled\s(like\s[file])\sit\sshould\s_first_\scheck\sif\sthe\starget\scommand\s(e.g.\s[::tcl::file::atime])\sis\sthere\sand\scall\sthat\scommand.\sIf\sthere\sis\sno\ssuch\shidden\scommand\s\sit\sshould\scheck\sif\sthere\sis\san\sexposed\scommand\swith\sthat\sname.\n\nI\sthink\sthis\sis\sthe\sonly\spossible\ssolution\sto\shave\sstill\sbackward\scompatibility\sand\s[file]\sa\snamespace\sensemble\n
J login johannes-kuhn
J mimetype text/plain
J username johannes-kuhn
K 3445787fffffffffffffffffffffffffffffffff
U johannes-kuhn
Z a26086998b94e9aaccebba4b73900615