Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f0d66cd3fee514a6f0d7a529cd24321352afc86b860ba6e1f0721f184745db58
Ticket: 4dc35e0c0cf24b4a997556b70396d998ebb6adfe
auto_execok on windows not always using absolute path
User & Date: juliannoble2 on 2025-01-25 18:11:55
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    When auto_execok on a command is first run when cwd is the folder containing the executable - autoexec_ok populates ::auto_execs with a relative path (not normalized)
    
    This means that when the current directory is changed - the cached value is wrong and the executable isn't found.
    
    This seems to be a change from earlier Tcl versions.
    
      c:\Windows\System32>tclsh
      % auto_execok cmd.exe
      C:/Windows/System32/cmd.exe
      % cd ..
      % cmd.exe /c
      # (no problem)
    
    
      c:\Windows\System32>tclsh90
      % auto_execok cmd.exe
      ./cmd.exe
      % cd ..
      % cmd.exe /c
      couldn't execute ".\cmd.exe": no such file or directory
    
  5. foundin changed to: "9"
  6. is_private changed to: "0"
  7. login: "juliannoble2"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "957fdfcd8744611e3fe1f4896c7538b1d9bf47b2"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "juliannoble2"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    auto_execok on windows not always using absolute path
    
  16. type changed to: "Bug"