Skip to content
Tcl Source Code Artifact [6bb0b924b1]
Login

Artifact [6bb0b924b1]

Artifact 6bb0b924b12f2199b46861a886ba3fa4ef6dd6ac:

Ticket change [6bb0b924b1] - New ticket [534026d188f9c0c9|534026d188] <i>interpreter initialization, auto_path, [info nameofexecutable], and symbolic links</i>. by pooryorick on 2016-12-15 05:24:38.
D 2016-12-15T05:24:38.602
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment init.tcl\scontains\sthe\sfollowing:\r\n\r\n<code><verbatim>\r\nset\sDir\s[file\sjoin\s[file\sdirname\s[file\sdirname\s\\\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\r\n\s\s\s\s\s\s\s\s[info\snameofexecutable]]]\slib]\r\n</verbatim></code>\r\n\r\n<code>[info\snameofexecutable]</code>\sreturns\sthe\sfull\spath\sof\sthe\sexecutable\r\nbut\sdoesn't\snormalize\ssymbolic\slinks.\s\sIf\sa\ssymbolic\slink\sto\sthe\stclsh\r\nexecutable\sis\smade\sin\ssome\sother\sdirectory\s,\sthe\sinterpreter\sinvoked\sby\sthe\r\nsymbolic\slink,\s<code>$Dir</code>\swill\scontain\sa\sdifferent\svalue\sbased\son\sthe\r\nlocation\sof\sthe\ssymbolic\slink.\s\sThis\scould\sresult\sin\ssome\ssurprises\sat\sruntime.\r\nIf\sthe\sscript\swere\schanged\sto\ssomething\slike\sthe\sfollowing,\sthe\sexecutable\r\nwould\salways\spick\sup\sthe\slib\sdirectory\sthat\sactually\sresides\snext\sto\sthe\stclsh\r\nexecutable:\r\n\r\n<code><verbatim>\r\nset\sDir\s[file\sjoin\s[file\sdirname\s[file\sdirname\s\\\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\r\n\s\s\s\s\s\s\s\s\s[file\sdirname\s[file\snormalize\s[info\snameofexecutable]/...]]]]\slib]\s\s\s\s\r\n\r\n</verbatim></code>
J foundin 8.6
J is_private 0
J login pooryorick
J priority 5\sMedium
J private_contact e476148cded301ffff84bcdc432536dc0c949e88
J resolution None
J severity Minor
J status Open
J submitter pooryorick
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title interpreter\sinitialization,\sauto_path,\s[info\snameofexecutable],\sand\ssymbolic\slinks
J type Bug
K 534026d188f9c0c9f8c1cf883eb62c030aa6769f
U pooryorick
Z f1e1d60c492958062155be774153873d