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 | ae6dedc7f04ccfccad1a9bbeb4c50825b96aa4b8 (patch) | |
tree | a558ce92fc5efb23b31d978e388ee1c936d20588 | |
parent | 02821cc03880c453797755f96a849d82920a4060 (diff) | |
download | ruby-ae6dedc7f04ccfccad1a9bbeb4c50825b96aa4b8.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/branches/ruby_1_8@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:14:41 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 f06073e001..74ecebb91d 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1185,7 +1185,7 @@ rb_w32_cmdvector(const char *cmd, char ***vec) switch (*ptr) { case '\\': - slashes++; + if (quote != '\'') slashes++; break; case ' ': @@ -1264,7 +1264,7 @@ rb_w32_cmdvector(const char *cmd, char ***vec) switch (*p) { case '\\': p++; - slashes++; + if (quote != '\'') slashes++; break; case '\'': |