summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-06 02:42:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-06 02:42:10 +0000
commitecde639a0a392f7b7d855dd6f99ec81fb4f3eab0 (patch)
treef35b101d47153d6cb0a904129d6c2afc3ecf3caa /win32
parentbcb45a68e2038ce96430c3f088c482ed3e7c1137 (diff)
downloadruby-ecde639a0a392f7b7d855dd6f99ec81fb4f3eab0.tar.gz
ruby-ecde639a0a392f7b7d855dd6f99ec81fb4f3eab0.tar.xz
ruby-ecde639a0a392f7b7d855dd6f99ec81fb4f3eab0.zip
* win32/win32.c (make_cmdvector): process backslashes even if a quote
is not enclosed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index c85b1b48e..81eca672a 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1195,8 +1195,7 @@ make_cmdvector(const char *cmd, char ***vec)
//
len = ptr - base;
- if (quote) escape = 0;
- else if (done) --len;
+ if (done) --len;
//
// if it's an input vector element and it's enclosed by quotes,