Issue #504 has been updated by Gregory Brown.


As far as I can tell, this is not a bug, as it is documented.

However, I would support a behavior change here.  I can't think of very many uses of the block form in the current case, unless you want to do ugly workarounds.

It would be quite nice if it returned a closed filehandle.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/504

----------------------------------------
http://redmine.ruby-lang.org