From: "ryanatball (Ryan Melton)" Date: 2013-11-27T07:34:09+09:00 Subject: [ruby-core:58612] [ruby-trunk - Bug #7239] Can't read from subprocess when run with rubyw on windows Issue #7239 has been updated by ryanatball (Ryan Melton). Please backport this to Ruby 1.9.3. ---------------------------------------- Bug #7239: Can't read from subprocess when run with rubyw on windows https://bugs.ruby-lang.org/issues/7239#change-43180 Author: mthiede (Martin Thiede) Status: Closed Priority: Normal Assignee: usa (Usaku NAKAMURA) Category: core Target version: ruby -v: ruby 1.9.3p194 (2012-04-20) [i386-mingw32] Backport: File.open 'res.txt', 'w' do |f| f << `dir` end when run with "rubyw", the file "res.txt" will be empty, when run with "ruby" it will contain the output of the "dir" command the problem is present in Ruby versions 1.9.1, 1.9.2 and 1.9.3 the problem is *not* present in Ruby version 1.8.7 -- http://bugs.ruby-lang.org/