Project

General

Profile

Feature #16791

Updated by 0x81000000 (/ /) over 4 years ago

[Updated] Only code: 
 ``` 
 s = `csc x.cs`.sub(/.*?\n\n/m, '') 
 puts s if s != '';     exit $?.exitstatus if $?.exitstatus > 0 
 system 'mono x.exe'; exit $?.exitstatus 
 ``` 
 ``` 
 class Process::Status 
     alias :es :p :pid 
     alias :s :exitstatus 
 end 
 ``` 
 ``` 
 s = `csc x.cs`.sub(/.*?\n\n/m, '') 
 puts s if s != '';     exit $?.es $?.s if $?.es $?.s > 0 
 system 'mono x.exe'; exit $?.es $?.s 
 ```

Back