Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1f9207d21781abe6129fb187b9c69e940dd90233
Ticket: 3017997fffffffffffffffffffffffffffffffff
batch files with the extension .cmd are not handled by exec
User & Date: homay2 on 2013-02-22 17:07:51
Changes

  1. icomment:
    Still exists in Tcl 8.6.0.
    Steps to reproduce:
    Create 2 files with the following contents:
    g:/lala.cmd:
       @start /wait cmd /c echo hello^&pause
    g:/lala.tcl:
       puts $env(PATHEXT); exec [auto_execok g:/lala]
    Run g:/lala.tcl. Result:
      .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
      couldn't execute "g:\lala.CMD": no such file or directory ...
    Now rename g:/lala.cmd -> g:/lala.bat, and run g:/lala.tcl again. 
    Result: the lala.bat batch runs as expected.
    
    
  2. login: "homay2"
  3. mimetype: "text/plain"
  4. username: "homay2"