[前][次][番号順一覧][スレッド一覧]

ruby-changes:14270

From: shyouhei <ko1@a...>
Date: Mon, 14 Dec 2009 13:28:18 +0900 (JST)
Subject: [ruby-changes:14270] Ruby:r26095 (ruby_1_8_7): merge revision(s) 25009:

shyouhei	2009-12-14 13:28:06 +0900 (Mon, 14 Dec 2009)

  New Revision: 26095

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26095

  Log:
    merge revision(s) 25009:
    * lib/open3.rb (Open3#popen3): fixed and improved rdoc.  [ruby-core:25658]

  Modified files:
    branches/ruby_1_8_7/ChangeLog
    branches/ruby_1_8_7/lib/open3.rb
    branches/ruby_1_8_7/version.h

Index: ruby_1_8_7/ChangeLog
===================================================================
--- ruby_1_8_7/ChangeLog	(revision 26094)
+++ ruby_1_8_7/ChangeLog	(revision 26095)
@@ -1,3 +1,7 @@
+Mon Dec 14 13:21:32 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/open3.rb (Open3#popen3): fixed and improved rdoc.  [ruby-core:25658]
+
 Mon Dec 14 13:09:01 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in (LIBPATHFLAG): use numbered specifier if RPATHFLAG
Index: ruby_1_8_7/version.h
===================================================================
--- ruby_1_8_7/version.h	(revision 26094)
+++ ruby_1_8_7/version.h	(revision 26095)
@@ -2,7 +2,7 @@
 #define RUBY_RELEASE_DATE "2009-12-14"
 #define RUBY_VERSION_CODE 187
 #define RUBY_RELEASE_CODE 20091214
-#define RUBY_PATCHLEVEL 238
+#define RUBY_PATCHLEVEL 239
 
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 8
Index: ruby_1_8_7/lib/open3.rb
===================================================================
--- ruby_1_8_7/lib/open3.rb	(revision 26094)
+++ ruby_1_8_7/lib/open3.rb	(revision 26095)
@@ -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/

[前][次][番号順一覧][スレッド一覧]