Overview
| Artifact ID: | 7904c6a78ae0a62fcf162ac3776a4574d3da0399 |
|---|---|
| Ticket: | 4ab2ccc4a26e39e630ab96f7e9281b60181ea5e9
auto_exec and exec inconsistent in Windows |
| User & Date: | gerhardr on 2014-12-02 12:24:11 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
# # Inconsistency between execution (exec) and exec_ok result # Incorrect exec_ok result for CMD files (prob. also other executables) # Incorrect error message: no such file or directory on exec # catch {console show} puts "Tcl/Tk [info patchlevel] - TCL bug exec/exec_ok" foreach ext {BAT CMD TXT} { set exepath [file join $env(TEMP) ${ext}_Test] puts "\nexepath=$exepath" set cmdfile $exepath.$ext if {! [file exists $cmdfile]} { puts "File doesn't exists, creating $cmdfile ..." set fd [open $cmdfile {WRONLY TRUNC CREAT}] puts $fd "@echo %~dpn0 started successfully... " close $fd } set execok [auto_execok $exepath] set fileex [file exists $execok] puts "execok=$execok, file exists=$fileex" catch {unset tmp} set oserrorcode [catch { set tmp [exec $execok] } oserrormsg] if {[info exists tmp]} { puts "cmdfile executed: oserrorcode=$oserrorcode, tmp='$tmp'" } else { puts "cmdfile executed: oserrorcode=$oserrorcode, tmp not set" } if {[info exists oserrormsg]} { puts "oserrormsg='$oserrormsg'" } } - foundin changed to: "8.6, 8.5"
- is_private changed to: "0"
- login: "gerhardr"
- priority changed to: "5 Medium"
- private_contact changed to: "9b076687903aba8f5254d84cbc9577f25d0fbe8c"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "gerhardr"
- subsystem changed to: "- New Builtin Commands"
- title changed to: "auto_exec and exec inconsistent in Windows"
- type changed to: "Bug"