berkesokhan / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
1 stars 0 forks source link

$? is missing #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
`dir`
puts $?.exitstatus

Expected output:
0

Actual output:
Unhandled Exception: Ruby.Runtime.RubyException: undefined method 
`exitstatus' for NilClass

i.e. $? doesn't exist?

Original issue reported on code.google.com by djl.rif...@googlemail.com on 16 Jan 2008 at 2:25

GoogleCodeExporter commented 9 years ago
Additional information:

The rb_f_backquote class in IO.cs does not record the exit status at all,
let alone in $_. To fix this the code will need to (a) create the global 
variable
$_, and (b) assign it to a Process:Status instance that gets constructed on
completion of rb_f_backquote.Call1.

Original comment by djl.rif...@googlemail.com on 23 Mar 2008 at 5:35