mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
61c11677c8
commit
f00babd1a6
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Aug 4 22:10:34 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@iDaemons.org>
|
Tue Aug 4 15:06:58 2009 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* lib/ipaddr.rb (IPAddr#{eql?,hash}): Add IPAddr#{eql?,hash} so
|
* lib/ipaddr.rb (IPAddr#{eql?,hash}): Add IPAddr#{eql?,hash} so
|
||||||
|
|
|
@ -1235,8 +1235,8 @@ has_redirection(const char *cmd)
|
||||||
const char *ptr;
|
const char *ptr;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Scan the string, looking for redirection (< or >) or pipe
|
// Scan the string, looking for redirection characters (< or >), pipe
|
||||||
// characters (|) that are not in a quoted string
|
// character (|) or newline (\n) that are not in a quoted string
|
||||||
//
|
//
|
||||||
|
|
||||||
for (ptr = cmd; *ptr;) {
|
for (ptr = cmd; *ptr;) {
|
||||||
|
@ -1253,6 +1253,7 @@ has_redirection(const char *cmd)
|
||||||
case '>':
|
case '>':
|
||||||
case '<':
|
case '<':
|
||||||
case '|':
|
case '|':
|
||||||
|
case '\n':
|
||||||
if (!quote)
|
if (!quote)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue