Skip to content
Tcl Source Code Artifact [7904c6a78a]
Login

Artifact [7904c6a78a]

Artifact 7904c6a78ae0a62fcf162ac3776a4574d3da0399:

Ticket change [7904c6a78a] - New ticket [4ab2ccc4a26e39e6|4ab2ccc4a2] <i>auto_exec and exec inconsistent in Windows</i>. by gerhardr on 2014-12-02 12:24:11.
D 2014-12-02T12:24:11.458
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment #\r\n#\sInconsistency\sbetween\sexecution\s(exec)\sand\sexec_ok\sresult\r\n#\sIncorrect\sexec_ok\sresult\sfor\sCMD\sfiles\s(prob.\salso\sother\sexecutables)\r\n#\sIncorrect\serror\smessage:\sno\ssuch\sfile\sor\sdirectory\son\sexec\r\n#\s\r\ncatch\s{console\sshow}\r\n\r\nputs\s"Tcl/Tk\s[info\spatchlevel]\s-\sTCL\sbug\sexec/exec_ok"\r\n\r\nforeach\sext\s{BAT\sCMD\sTXT}\s{\r\n\s\sset\sexepath\s[file\sjoin\s$env(TEMP)\s${ext}_Test]\r\n\s\sputs\s"\\nexepath=$exepath"\r\n\r\n\s\sset\scmdfile\s$exepath.$ext\r\n\s\sif\s{!\s[file\sexists\s$cmdfile]}\s{\r\n\s\s\s\sputs\s"File\sdoesn't\sexists,\screating\s$cmdfile\s..."\r\n\s\s\s\sset\sfd\s[open\s$cmdfile\s{WRONLY\sTRUNC\sCREAT}]\r\n\s\s\s\sputs\s$fd\s"@echo\s%~dpn0\sstarted\ssuccessfully...\s"\r\n\s\s\s\sclose\s$fd\r\n\s\s}\r\n\r\n\s\sset\sexecok\s[auto_execok\s$exepath]\r\n\s\sset\sfileex\s[file\sexists\s$execok]\r\n\s\sputs\s"execok=$execok,\sfile\sexists=$fileex"\r\n\r\n\s\scatch\s{unset\stmp}\r\n\s\sset\soserrorcode\s[catch\s{\sset\stmp\s[exec\s\s$execok]\s}\soserrormsg]\r\n\s\sif\s{[info\sexists\stmp]}\s{\r\n\s\s\s\sputs\s"cmdfile\sexecuted:\soserrorcode=$oserrorcode,\stmp='$tmp'"\r\n\s\s}\selse\s{\r\n\s\s\s\sputs\s"cmdfile\sexecuted:\soserrorcode=$oserrorcode,\stmp\snot\sset"\r\n\s\s}\r\n\r\n\s\sif\s{[info\sexists\soserrormsg]}\s{\r\n\s\s\s\sputs\s"oserrormsg='$oserrormsg'"\r\n\s\s}\r\n}
J foundin 8.6,\s8.5
J is_private 0
J login gerhardr
J priority 5\sMedium
J private_contact 9b076687903aba8f5254d84cbc9577f25d0fbe8c
J resolution None
J severity Important
J status Open
J submitter gerhardr
J subsystem -\sNew\sBuiltin\sCommands
J title auto_exec\sand\sexec\sinconsistent\sin\sWindows
J type Bug
K 4ab2ccc4a26e39e630ab96f7e9281b60181ea5e9
U gerhardr
Z 284320067e31de1ecc935c60123252e0