Artifacts Associated With Ticket 1244733
Ticket change [8fce183b80] (rid 120339) by techentin on 2005-07-25 19:33:25:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
auto_execok can return relative path names. On Windows, "." is one of the standard search directories. And on Unix, empty directories in the path are treated as ".". In these cases, [file executable] is successful, and auto_execok returns something like "./myfile" It works fine until your application changes working directory. Then relative path names are broken. Perhaps auto_execok should use [file normalize] before returning.
- foundin initialized to: "obsolete: 8.4.11"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "techentin"
- subsystem initialized to: "38. Init - Library - Autoload"
- title initialized to: "auto_execok can return relative path names"
- type initialized to: "Bug"
Ticket change [dfac2b4fa8] (rid 115050) by dgp on 2005-11-02 01:57:39:
- icomment:
Logged In: YES user_id=80530 Since the purpose of [auto_execok] is to return something suitable for passing to [exec], applying [file normalize] to the return value can only make things more robust. So, I think this is a good idea. One wrinkle in the plan is that [file normalize] isn't present in safe interps. Another issue is that freewrap seems to have issues with [file normalize] (see 1072136) if someone can resolve those issues, we can move forward with this.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e4d4aa7e60] (rid 253649) by apnadkarni on 2026-05-18 10:28:52:
- closedate changed to: "2461178.9367132522"
- closer changed to: "apnadkarni"
- comment changed to:
auto_execok can return relative path names. On Windows, "." is one of the standard search directories. And on Unix, empty directories in the path are treated as ".". In these cases, [file executable] is successful, and auto_execok returns something like "./myfile" It works fine until your application changes working directory. Then relative path names are broken. Perhaps auto_execok should use [file normalize] before returning.
- icomment:
Fixed for 9.1 in TIP 753 commit [de961e8d](https://core.tcl-lang.org/tcl/info/de961e8dee5470e6). Paths are not cached - see the TIP and discussion. Tested in `auto_execok-win-6.1`.
- login: "apnadkarni"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"