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 | 5071cc604dbb638c5a75a868bbd98a105830829c (patch) | |
tree | 4e796c9e8b592f25c513d18ade0bfbda73bd2dae | |
parent | fec883266fe54caeec54f20d9346fee5daa17168 (diff) | |
download | ruby-5071cc604dbb638c5a75a868bbd98a105830829c.tar.gz ruby-5071cc604dbb638c5a75a868bbd98a105830829c.tar.xz ruby-5071cc604dbb638c5a75a868bbd98a105830829c.zip |
* win32/win32.c (rb_w32_cmdvector): backslashes inside single-quotes
no longer has special meanings. fixed: [ruby-list:42311]
git-svn-id: http://svn.ruby-lang.org/repos/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 62a65d234..3c7ac46ce 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 '\'': |