mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (is_internal_cmd): if the first char of prog is '@',
execute it via shell. [ruby-core:35218] (#4393) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0755c1c8f2
commit
23301142cc
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Feb 14 13:15:35 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (is_internal_cmd): if the first char of prog is '@',
|
||||
execute it via shell. [ruby-core:35218] (#4393)
|
||||
|
||||
Mon Feb 14 10:33:45 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/test/unit.rb: revert r30863, because it causes too many noise.
|
||||
|
|
|
@ -854,6 +854,8 @@ is_internal_cmd(const char *cmd, int nt)
|
|||
do {
|
||||
if (!(c = *cmd++)) return 0;
|
||||
} while (isspace(c));
|
||||
if (c == '@')
|
||||
return 1;
|
||||
while (isalpha(c)) {
|
||||
*b++ = tolower(c);
|
||||
if (b == cmdname + sizeof(cmdname)) return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue