diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-08 15:33:32 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-08 15:33:32 +0000 |
commit | 59dc7d4c9641204275fb9d93ffbd99baf3c58a98 (patch) | |
tree | 29f0f5997b733e0efe39fc5a97ed3dffc3fd316b /win32 | |
parent | dd8b1350b0ad0ac00a100909bf1cb656cd0b9b17 (diff) |
merges r24389 from trunk into ruby_1_9_1.
--
* win32/win32.c (has_redirection): need to execute shell if commandline
includes newline. cf. [ruby-core:24560]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index bf405e0e64..b461a78b03 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1133,8 +1133,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;) { @@ -1151,6 +1151,7 @@ has_redirection(const char *cmd) case '>': case '<': case '|': + case '\n': if (!quote) return TRUE; ptr++; |