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

ruby-changes:12674

From: usa <ko1@a...>
Date: Tue, 4 Aug 2009 22:13:34 +0900 (JST)
Subject: [ruby-changes:12674] Ruby:r24389 (trunk): * win32/win32.c (has_redirection): need to execute shell if commandline

usa	2009-08-04 22:13:17 +0900 (Tue, 04 Aug 2009)

  New Revision: 24389

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

  Log:
    * win32/win32.c (has_redirection): need to execute shell if commandline
      includes newline.  cf. [ruby-core:24560]

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24388)
+++ ChangeLog	(revision 24389)
@@ -1,3 +1,8 @@
+Tue Aug  4 22:10:34 2009  NAKAMURA Usaku  <usa@r...>
+
+	* win32/win32.c (has_redirection): need to execute shell if commandline
+	  includes newline.  cf. [ruby-core:24560]
+
 Tue Aug  4 15:06:58 2009  Akinori MUSHA  <knu@i...>
 
 	* lib/ipaddr.rb (IPAddr#{eql?,hash}): Add IPAddr#{eql?,hash} so
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 24388)
+++ win32/win32.c	(revision 24389)
@@ -1235,8 +1235,8 @@
     const char *ptr;
 
     //
-    // Scan the string, looking for redirection (< or >) or pipe 
-    // characters (|) that are not in a quoted string
+    // Scan the string, looking for redirection characters (< or >), pipe
+    // character (|) or newline (\n) that are not in a quoted string
     //
 
     for (ptr = cmd; *ptr;) {
@@ -1253,6 +1253,7 @@
 	  case '>':
 	  case '<':
 	  case '|':
+	  case '\n':
 	    if (!quote)
 		return TRUE;
 	    ptr++;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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