$ ruby test.rb
test
$ ruby test.rb > out
$ type out
test
$ test
test
$ test > out
[BUG] rb_update_max_fd: invalid fd (1) given.
ruby 1.9.3p0 (2011-10-30) [i386-mingw32]
-- Control frame information -----------------------------------------------
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
-- Other runtime information -----------------------------------------------
0: can't convert false into String (TypeError)
$
Expected test > out' to behave like ruby test.rb > out'.
Bug occurs with both 1.9.3 (RubyInstaller) and 1.9.2 (Binary); 1.8.7 (RubyInstaller) behaves as expected. Tested on Windows XP Version 2002 Service Pack 3; originally reported on Windows 7.
Unfortunately, I find myself unable to compile Ruby on Windows. I'm not familiar with developing on that platform and all the instructions I could find were either outdated or rather complicated. So I simply trust that it's fixed by r33691. Will that change be backported to 1.9.3?
Unfortunately, I find myself unable to compile Ruby on Windows. I'm not familiar with developing on that platform and all the instructions I could find were either outdated or rather complicated. So I simply trust that it's fixed by r33691. Will that change be backported to 1.9.3?
Testing this wouldn't be that hard if you use RubyInstaller recipes and build infrastructure.
Luis, that's awesome. I was literally saying to myself the RubyInstaller guys must be providing some easy way to do this, I just wasn't able to find anything from the homepage. So thanks! I might give it a try some time. Though I won't spend more time on Windows than is absolutely necessary, for sure ;)