[Win32utils-devel] [ win32utils-Feature Requests-3502 ] Allow win32-open3 to take a block
noreply@rubyforge.org
noreply at rubyforge.org
Wed Feb 8 12:29:08 EST 2006
Feature Requests item #3502, was opened at 2006-02-08 10:29
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=414&aid=3502&group_id=85
Category: win32-open3
Group: Code
Status: Open
Resolution: None
Priority: 4
Submitted By: Daniel Berger (djberg96)
Assigned to: Park Heesob (phasis68)
Summary: Allow win32-open3 to take a block
Initial Comment:
I think we should allow win32-open3's methods to take a block in the way that the Unix open3 module works, e.g.
Open3.popen3(cmd){ |cmd_in, cmd_out, cmd_err|
# ...
}
Each pipe should be closed via ensure as open3.rb does. This keeps the API compatible with the current Ruby API, and is probably a better way to use the module in general (since the pipes are guaranteed to be closed at the end of the block).
Regards,
Dan
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=414&aid=3502&group_id=85
More information about the win32utils-devel
mailing list