Overview
| Artifact ID: | a386525a4cc1d847646d5db94406ca7bb693e299e125d6c605d044c584a4dc81 |
|---|---|
| Ticket: | 4fae07ea8a7f1d5462800eea0cf2a36b67136472
Broken exec/auto_execok handling of PATHEXT extensions on Windows |
| User & Date: | apnadkarni on 2026-04-27 10:51:38 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
On Windows, `auto_execok` looks up `PATHEXT` for extensions that are deemed to be "executable". However, the returned command that is to be passed to exec is wrong. For example, ``` % file exists foo.vbs 1 % auto_execok foo.vbs c:/src/tcltk/wip/tcl/win/Release_AMD64_VC1944/foo.vbs % exec {*}[auto_execok foo.vbs] couldn't execute "c:\src\tcltk\wip\tcl\win\Release_AMD64_VC1944\foo.vbs": no such file or directory ``` If auto_execok does not handle `PATHEXT`, it can be documented as such and return an empty string. Returning some bogus command line that will never work is not advisable. - is_private changed to: "0"
- login: "apnadkarni"
- priority changed to: "5 Medium"
- private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "apnadkarni"
- subsystem changed to: "- New Builtin Commands"
- title changed to:
Broken exec/auto_execok handling of PATHEXT extensions on Windows
- type changed to: "Bug"