diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-04 13:13:17 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-04 13:13:17 +0000 |
commit | f00babd1a6d9c5ec1b99442e3a38c53ddbb52a62 (patch) | |
tree | 6b6e2e04e1be45d91ba00b9cceb746ce022995e0 /win32 | |
parent | 61c11677c8ee20e07dea84a5a3bf8b68ff449188 (diff) | |
download | ruby-f00babd1a6d9c5ec1b99442e3a38c53ddbb52a62.tar.gz |
* 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/trunk@24389 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 8f2a4ac8fa..fc33b1152c 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++; |