Overview
| Artifact ID: | 6bb0b924b12f2199b46861a886ba3fa4ef6dd6ac |
|---|---|
| Ticket: | 534026d188f9c0c9f8c1cf883eb62c030aa6769f
interpreter initialization, auto_path, [info nameofexecutable], and symbolic links |
| User & Date: | pooryorick on 2016-12-15 05:24:38 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
init.tcl contains the following: <code><verbatim> set Dir [file join [file dirname [file dirname \ [info nameofexecutable]]] lib] </verbatim></code> <code>[info nameofexecutable]</code> returns the full path of the executable but doesn't normalize symbolic links. If a symbolic link to the tclsh executable is made in some other directory , the interpreter invoked by the symbolic link, <code>$Dir</code> will contain a different value based on the location of the symbolic link. This could result in some surprises at runtime. If the script were changed to something like the following, the executable would always pick up the lib directory that actually resides next to the tclsh executable: <code><verbatim> set Dir [file join [file dirname [file dirname \ [file dirname [file normalize [info nameofexecutable]/...]]]] lib] </verbatim></code> - foundin changed to: "8.6"
- is_private changed to: "0"
- login: "pooryorick"
- priority changed to: "5 Medium"
- private_contact changed to: "e476148cded301ffff84bcdc432536dc0c949e88"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "pooryorick"
- subsystem changed to: "38. Init - Library - Autoload"
- title changed to:
interpreter initialization, auto_path, [info nameofexecutable], and symbolic links
- type changed to: "Bug"