noreply at rubyforge.org
2009-Apr-03 19:02 UTC
[Win32utils-devel] [ win32utils-Bugs-25155 ] win32-open3 always returns nil in block form
Bugs item #25155, was opened at 2009-04-03 12:02 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=25155&group_id=85 Category: win32-open3 Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Park Heesob (phasis68) Summary: win32-open3 always returns nil in block form Initial Comment: Hi, On Unix the following code returns 1. On Windows the block form appears to always return nil. cmd = File::ALT_SEPARATOR ? ''dir'' : ''ls'' rv = Open3.popen3(cmd) do |stdin, stdout, stderr| 1 end puts "RV: #{rv}" # 1 on Unix, nil on Windows Regards, Dan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=25155&group_id=85