Overview
| Artifact ID: | 1bacd2b0eadcaee69f49ed555905db118b48ac56 |
|---|---|
| Ticket: | 1267871fffffffffffffffffffffffffffffffff
fully support win32 exit codes |
| User & Date: | matt-newman on 2005-11-04 19:15:56 |
Changes
- icomment:
Logged In: YES user_id=1333796 this patch is to allow exit codes greater that 255 - try: exit [expr { 1 << 15 }] It is about BOTH being able to exit with such a status, but far more importantly it is about being able to exec a process that returns such a return code and being able to obtain that return code. create exit.tcl as: exit [expr { 1 << 15 }] and execute: set rc [catch { exec [info nameof] exit.tcl } err] puts [list $rc $err $errorCode] with vanilla 8.4 you get 0 {} {} with the patched version you get: 1 {child process exited abnormally} {CHILDSTATUS 3152 32768} - login: "matt-newman"
- mimetype: "text/plain"
- username: "matt-newman"