Overview
| Artifact ID: | 597399031e96baa1564eb1333fb7ebf89779e575a1dd46c6cf845f81245bf78f |
|---|---|
| Ticket: | 4dc35e0c0cf24b4a997556b70396d998ebb6adfe
auto_execok on windows not always using absolute path |
| User & Date: | apnadkarni on 2025-01-26 05:48:48 |
Changes
- icomment:
There are a whole [bunch](https://core.tcl-lang.org/tcl/search?s=auto_execok&y=t) of unresolved tickets with `auto_execok` on Windows. It's probably going to need a TIP to (a) clearly define how the it should work (e.g. search path, priority of extension vs PATH order, use of PATHEXT etc.) and (b) then to implement that behavior. Who will bell the cat :-) In the meanwhile, it appears the absence of normalization only happens if the target is in the current directory and not if it is located on PATH. Also this behavior is not new with 9.0. Which earlier version of Tcl were you using? With 8.6.10 or even with the current core-8-6-branch for example, ``` c:\Windows\System32>c:\tcl\8.6.10\x64\bin\tclsh86t.exe % auto_execok cmd.exe ./cmd.exe ``` ``` c:\Windows\System32>c:\tcl\core-8-6-branch\x64-debug\bin\tclsh86t.exe % auto_execok cmd.exe ./cmd.exe ```
- login: "apnadkarni"
- mimetype: "text/x-markdown"