[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

IO#reopen bug in 1.8.4?

Jason Clinton

2/7/2006 4:38:00 PM

Greetings list,

$stdout.fileno => 1
$stderr.fileno => 2
$stderr.reopen($stdout)
$stderr.fileno => 2

Shouldn't that last line evaluate to 1?

BTW, it does indeed redirect STDERR to STDOUT, it's just that the #fileno
appears to be wrong.

1 Answer

Ara.T.Howard

2/7/2006 4:58:00 PM

0