"exit $?" raises TypeError on Ruby 2.0
This commit is contained in:
parent
7f10aa3b6e
commit
84cd9cc28f
@ -90,9 +90,13 @@ def interactive_shell f=nil
|
||||
|
||||
Process.wait fork { exec ENV['SHELL'] }
|
||||
|
||||
unless $?.success?
|
||||
if $?.success?
|
||||
return
|
||||
elsif $?.exited?
|
||||
puts "Aborting due to non-zero exit status"
|
||||
exit $?
|
||||
exit $?.exitstatus
|
||||
else
|
||||
raise $?.inspect
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user