Overview
| Artifact ID: | e4d4aa7e602d46fd38bea175bd99ff69105d5a15f8110aec16b7d2bf0f16f969 |
|---|---|
| Ticket: | 1244733fffffffffffffffffffffffffffffffff
auto_execok can return relative path names |
| User & Date: | apnadkarni on 2026-05-18 10:28:52 |
Changes
- 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"