summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-16 07:10:08 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-16 07:10:08 +0000
commitda06476f8b4775bcafc6dea87b13579f711e0eaf (patch)
tree394683738f2e1f0ef1233fb8d5d775fd8d9157ee /win32
parent6114c7100db229df42bcf4ce3ac1a53c61a54435 (diff)
downloadruby-da06476f8b4775bcafc6dea87b13579f711e0eaf.tar.gz
ruby-da06476f8b4775bcafc6dea87b13579f711e0eaf.tar.xz
ruby-da06476f8b4775bcafc6dea87b13579f711e0eaf.zip
* win32/win32.c (rb_w32_spawn): `\'' is also quote character.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index f24a6ab2d..35b52df1d 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1054,7 +1054,7 @@ rb_w32_spawn(int mode, const char *cmd, const char *prog)
cmd = tmp;
}
else {
- int len = 0, quote = (*cmd == '"') ? '"' : 0;
+ int len = 0, quote = (*cmd == '"') ? '"' : (*cmd == '\'') ? '\'' : 0;
for (prog = cmd + !!quote;; prog = CharNext(prog)) {
if (!*prog) {
len = prog - cmd;