From 041c79b5dfa6d0af50461381aaeb6a3f55fb30f2 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 4 Aug 2009 13:13:17 +0000 Subject: * win32/win32.c (has_redirection): need to execute shell if commandline includes newline. cf. [ruby-core:24560] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 8f2a4ac8f..fc33b1152 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1235,8 +1235,8 @@ has_redirection(const char *cmd) 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 @@ has_redirection(const char *cmd) case '>': case '<': case '|': + case '\n': if (!quote) return TRUE; ptr++; -- cgit