Artifacts Associated With Ticket 3017997
Ticket change [b454f74b15] (rid 125013) by arjenmarkus on 2010-06-18 11:42:37:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized 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]
- foundin initialized to: "obsolete: 8.5.8"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "arjenmarkus"
- subsystem initialized to: "16. Commands A-H"
- title initialized to:
batch files with the extension .cmd are not handled by exec
- type initialized to: "Bug"
Ticket change [b9989e608f] (rid 129172) by dkf on 2010-06-18 19:45:12:
- closedate changed to: "2010-06-18T12:45:12"
- closer changed to: "dkf"
- icomment:
allow_comments - 1 Interesting, that means they must have not set the PATHEXT environment variable. .cmd now added to the default list on 8.5 and HEAD branches.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"
Ticket change [ecebca20ba] (rid 103793) by dkf on 2010-06-18 19:59:53:
- icomment:
allow_comments - 0 Whoops! Wasn't aware that that was not enough. Needs a round of lookup through the registry. :-(
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
- subsystem changed to: "38. Init - Library - Autoload"
- username: "dkf"
- icomment:
Ticket change [bd68001ab8] (rid 101897) by dkf on 2010-06-18 20:22:09:
- assignee changed to: "hobbs"
- icomment:
I've forgotten too much of the details.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [1f9207d217] (rid 91167) by homay2 on 2013-02-22 17:07:51:
- 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.
- login: "homay2"
- mimetype: "text/plain"
- username: "homay2"
- icomment:
Ticket change [58170da7f7] (rid 237224) by apnadkarni on 2025-01-26 06:49:55:
- assignee changed to: "aku"
- closedate changed to: "2460701.78466535"
- closer changed to: "apnadkarni"
- 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]
- icomment: "Obsolete. Fixed in 8.6. Closing."
- login: "apnadkarni"
- mimetype: "text/plain"
- severity changed to: "Minor"
- status changed to: "Closed"