Project

General

Profile

ActionsLike0

Feature #16791

open

Shortcut for Process::Status.exitstatus

Added by 0x81000000 (/ /) almost 5 years ago. Updated almost 5 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:97905]

Description

[Updated]

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 :exitstatus
end
s = `csc x.cs`.sub(/.*?\n\n/m, '')
puts s if s != '';   exit $?.es if $?.es > 0
system 'mono x.exe'; exit $?.es
#2

Updated by 0x81000000 (/ /) almost 5 years ago

  • Description updated (diff)
  • Subject changed from Shortcuts for attributes of Process::Status to Shortcut for Process::Status.exitstatus
ActionsLike0

Also available in: Atom PDF