Issue #16791 has been reported by 0x81000000 (/ /).

----------------------------------------
Feature #16791: Shortcuts for attributes of Process::Status
https://bugs.ruby-lang.org/issues/16791

* Author: 0x81000000 (/ /)
* Status: Open
* Priority: Normal
----------------------------------------
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 :p :pid
    alias :s :exitstatus
end
```
```
s = `csc x.cs`.sub(/.*?\n\n/m, '')
puts s if s != '';   exit $?.s if $?.s > 0
system 'mono x.exe'; exit $?.s
```



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>