Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. 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.
    
  5. is_private changed to: "0"
  6. login: "apnadkarni"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to:
    Broken exec/auto_execok handling of PATHEXT extensions on Windows
    
  15. type changed to: "Bug"