|
|
|
@ -420,10 +420,11 @@ know {[regexp {^([0-9]+)\.\.([0-9]+)$} [lindex $args 0] -> from to]} {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#handle process return dict of form {exitcode num etc blah} |
|
|
|
|
#ie when the return result as a whole is treated as a command |
|
|
|
|
#exitcode must be the first key |
|
|
|
|
know {[lindex $args 0 0] eq "exitcode"} { |
|
|
|
|
set c [lindex $args 0 1] |
|
|
|
|
uplevel 1 [list exitcode $c] |
|
|
|
|
#set c [lindex $args 0 1] |
|
|
|
|
uplevel 1 [list exitcode {*}[lrange [lindex $args 0] 1 end]] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|