From da7472ee99258e332edaff0f029f9aab2d03806b Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 1 Jun 2006 10:13:41 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ win32/win32.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 783c5bdfc4..0666a3bb94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 1 19:12:37 2006 Nobuyoshi Nakada + + * 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 * 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 '\'':