diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-01 10:13:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-01 10:13:41 +0000 |
commit | da7472ee99258e332edaff0f029f9aab2d03806b (patch) | |
tree | 4e796c9e8b592f25c513d18ade0bfbda73bd2dae | |
parent | e4602e1d275752f38a84c89ce4ddb87826f4fa17 (diff) | |
download | ruby-da7472ee99258e332edaff0f029f9aab2d03806b.tar.gz |
* win32/win32.c (rb_w32_cmdvector): backslashes inside single-quotes
no longer has special meanings. fixed: [ruby-list:42311]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | win32/win32.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Thu Jun 1 19:12:37 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * win32/win32.c (rb_w32_cmdvector): backslashes inside single-quotes + no longer has special meanings. fixed: [ruby-list:42311] + Thu Jun 1 16:17:26 2006 NAKAMURA Usaku <usa@ruby-lang.org> * win32/win32.c (rb_w32_getcwd): runtime's getcwd() will not success diff --git a/win32/win32.c b/win32/win32.c index 62a65d2346..3c7ac46ce5 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1179,7 +1179,7 @@ rb_w32_cmdvector(const char *cmd, char ***vec) switch (*ptr) { case '\\': - slashes++; + if (quote != '\'') slashes++; break; case ' ': @@ -1261,7 +1261,7 @@ rb_w32_cmdvector(const char *cmd, char ***vec) switch (c = *p) { case '\\': p++; - slashes++; + if (quote != '\'') slashes++; break; case '\'': |