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

Artifact [7efc592b80]

Artifact 7efc592b80c4db54baf059a74829a1b86cce71da79c860f566dc5cf0901124b7:

Ticket change [7efc592b80] - Ticket [41c9857bdd2d137b|41c9857bdd] <i>library/init.tcl adds nonsense to auto_path in Safe Base interpreters</i> status still Open with 4 other changes by kjnash on 2020-06-23 18:17:13.
D 2020-06-23T18:17:13.523
J comment (Fixed\sin\score-8-6-branch\scommit\sbe0c740944\s-\sthis\sticket\sis\sfor\sreference.)\r\n\r\nBug\sin\slibrary/init.tcl\sfor\sSafe\sBase\sinterpreters.\r\n\r\nThe\sfile\slibrary/init.tcl\sis\ssourced\sinto\sthe\smain\sinterpreter,\sunsafe\sslave\sinterpreters,\sand\sSafe\sBase\sslave\sinterpreters.\r\n\r\nThe\sfile\sis\snot\ssourced\sinto\ssafe\sslave\sinterpreters\screated\sby\s[interp\screate\s-safe\sfoo].\s\sIn\sa\sSafe\sBase\sinterpreter,\sthe\sfile\sis\ssourced\sby\s::safe::interpCreate\safter\sit\screates\sthe\ssafe\sslave.\r\n\r\nIn\sa\sSafe\sBase\sinterpreter,\sthe\selements\sof\s::auto_path\smust\sbe\sthe\stokenized\sdirectory\snames,\se.g.\s{$p(:42:)}.\s\sThe\sSafe\sBase\sinterpreter\sis\sunable\sto\suse\sreal\sdirectory\snames,\sand\ssuch\sinformation\sshould\snot\sleak\sinto\sthe\sinterpreter\sin\sany\scase.\r\n\r\nThe\scurrent\slibrary/init.tcl\spermits\ssuch\sleakage.\s\sIt\sappends\sthe\slist\selements\s.\s./lib\sto\s::auto_path.\r\n\s\s\s\s.\sis\sadded\sas\s[file\sdirname\s$::tcl_library]\r\n\s\s\s\s./lib\sis\sadded\sas\s[file\sjoin\s[file\sdirname\s[file\sdirname\s[info\snameofexecutable]]]\slib]\r\n\r\nThe\sbest\sfix\sis\snot\sto\sallow\ssafe\sinterpreters\sto\sexecute\sthe\scode\sthat\ssets\sauto_path\sin\slibrary/init.tcl.\s\sFor\sa\sSafe\sBase\sslave\sinterpreter,\sresponsibility\sfor\sinitializing\s::auto_path\srests\swith\sthe\sSafe\sBase\sand\swith\sthe\scaller\sof\s::safe::interpCreate,\snot\swith\slibrary/init.tcl.
J icomment Commit\sbe0c740944\salso\sunsets\sthe\svariables\stcl::Dir\sand\stcl::Path\sused\sin\slibrary/init.tcl.\s\sThese\sprivate\svariables\sare\snot\sdocumented\sin\stclvars(n),\sand\sextensive\sgrepping\sshows\sthat\sthey\sare\snot\sused\sby\sany\sother\scode.
J login kjnash
J mimetype text/plain
K 41c9857bdd2d137b9130deb6704be15e159e4765
U kjnash
Z b87d434efc4527f73d7b0059ad8d4b51