1.9.1's rubyw.exe can not read from pipe ?

L

Lui Kore

I found this problem when writing a GUI app with wxruby.

Minimal test code (run "dir" and write result to "res.txt"):

File.open 'res.txt', 'w' do |f|
f << `dir`
end

ruby.exe and rubyw.exe of 1.8.7p72 are fine,
but rubyw.exe of 1.9.1p243 (from rubyinstaller.org) writes an empty
file.

Is it a bug of rubyinstaller or 1.9 ?

My OS is Windows 7.
 
R

Roger Pack

ruby.exe and rubyw.exe of 1.8.7p72 are fine,
but rubyw.exe of 1.9.1p243 (from rubyinstaller.org) writes an empty
file.

Is it a bug of rubyinstaller or 1.9 ?

My OS is Windows 7.

I get the same thing here with 1.9.1 but not with 1.9.2, so I suppose
it's some bug fix that needs to be backported.
-r
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,160
Messages
2,570,890
Members
47,423
Latest member
henerygril

Latest Threads

Top