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.
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.