[MacRuby/MacRuby] 9e98ae: Kernel.open with pipe will be able to open stream ...
4 May
2011
4 May
'11
1:57 p.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 9e98aef8f0bdea45b39bf077dc0ba69382509484 https://github.com/MacRuby/MacRuby/commit/9e98aef8f0bdea45b39bf077dc0ba69382... Author: Watson <watson1978@gmail.com> Date: 2011-05-04 (Wed, 04 May 2011) Changed paths: M io.c Log Message: ----------- Kernel.open with pipe will be able to open stream to write. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions open("| ruby", "r+") do |f| f.puts "puts 'foo'" f.close_write assert_equal("foo\n", f.read) end puts :ok }}}
5302
Age (days ago)
5302
Last active (days ago)
0 comments
1 participants
participants (1)
-
noreply@github.com