summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-14 04:17:01 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-14 04:17:01 +0000
commit23301142cc9021f8364e6249198647b521a37a07 (patch)
treec6bb1f2fb2c15bcd6b88c9f87a3b9290c98a50dd /win32
parent0755c1c8f2aaf83315353f9e99bd13b2d4ff618b (diff)
* 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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index ef7acce6ca..99802d07d0 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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;