ruby-changes:13248
From: nobu <ko1@a...>
Date: Sun, 20 Sep 2009 09:53:52 +0900 (JST)
Subject: [ruby-changes:13248] Ruby:r25009 (ruby_1_8): * lib/open3.rb (Open3#popen3): fixed and improved rdoc.
nobu 2009-09-20 09:53:37 +0900 (Sun, 20 Sep 2009) New Revision: 25009 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25009 Log: * lib/open3.rb (Open3#popen3): fixed and improved rdoc. [ruby-core:25658] Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/lib/open3.rb branches/ruby_1_8/version.h Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 25008) +++ ruby_1_8/ChangeLog (revision 25009) @@ -1,3 +1,7 @@ +Sun Sep 20 09:53:35 2009 Nobuyoshi Nakada <nobu@r...> + + * lib/open3.rb (Open3#popen3): fixed and improved rdoc. [ruby-core:25658] + Fri Sep 18 14:44:13 2009 NAKAMURA Usaku <usa@r...> * win32/win32.c (rb_w32_select): wait specified time on select. Index: ruby_1_8/version.h =================================================================== --- ruby_1_8/version.h (revision 25008) +++ ruby_1_8/version.h (revision 25009) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.8.8" -#define RUBY_RELEASE_DATE "2009-09-18" +#define RUBY_RELEASE_DATE "2009-09-20" #define RUBY_VERSION_CODE 188 -#define RUBY_RELEASE_CODE 20090918 +#define RUBY_RELEASE_CODE 20090920 #define RUBY_PATCHLEVEL -1 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 8 #define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_MONTH 9 -#define RUBY_RELEASE_DAY 18 +#define RUBY_RELEASE_DAY 20 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; Index: ruby_1_8/lib/open3.rb =================================================================== --- ruby_1_8/lib/open3.rb (revision 25008) +++ ruby_1_8/lib/open3.rb (revision 25009) @@ -33,7 +33,7 @@ # # require 'open3' # - # [stdin, stdout, stderr] = Open3.popen3(cmd) + # stdin, stdout, stderr = Open3.popen3(cmd) # # Block form: # @@ -43,6 +43,12 @@ # # The parameter +cmd+ is passed directly to Kernel#exec. # + # _popen3_ is like _system_ in that you can pass extra parameters, and the + # strings won't be mangled by shell expansion. + # + # stdin, stdout, stderr = Open3.popen3('identify', '/weird path/with spaces/and "strange" characters.jpg') + # result = stdout.read + # def popen3(*cmd) pw = IO::pipe # pipe[0] for read, pipe[1] for write pr = IO::pipe -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/