Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1bacd2b0eadcaee69f49ed555905db118b48ac56
Ticket: 1267871fffffffffffffffffffffffffffffffff
fully support win32 exit codes
User & Date: matt-newman on 2005-11-04 19:15:56
Changes

  1. 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}
    
    
    
    
  2. login: "matt-newman"
  3. mimetype: "text/plain"
  4. username: "matt-newman"