Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 58170da7f7886148da4a43bdae6597fe6c9963f60f80b8f5d67fb63a20659033
Ticket: 3017997fffffffffffffffffffffffffffffffff
batch files with the extension .cmd are not handled by exec
User & Date: apnadkarni on 2025-01-26 06:49:55
Changes

  1. assignee changed to: "aku"
  2. closedate changed to: "2460701.78466535"
  3. closer changed to: "apnadkarni"
  4. comment changed to:
    In the clt newsgroup I wrote:
    
    we ran into a small issue with [exec] on Windows: 
    In a DOS-box you can simply type a.cmd and the batch file is run. But [exec] gives the message: 
    
    couldn't execute "a.cmd": no such file or directory 
    
    [auto_execok a.cmd] simply returns "./a.cmd" and that gives the same message. 
    
    You can run it by explicitly running it via cmd.exe: 
    
    exec cmd.exe /c a.cmd 
    
    It seems a bug (or perhaps better: an omission) in auto_execok. 
    
    Batch files with the extension .bat are handled properly by [exec]
    
  5. icomment: "Obsolete. Fixed in 8.6. Closing."
  6. login: "apnadkarni"
  7. mimetype: "text/plain"
  8. severity changed to: "Minor"
  9. status changed to: "Closed"