浏览代码

When cd-jing into directory, if directory has space, it should put quotes around. I guess we could just put quotes around all the time

Andy Cedilnik 23 年之前
父节点
当前提交
a4b04375d2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmSystemTools.cxx

+ 2 - 2
Source/cmSystemTools.cxx

@@ -1470,9 +1470,9 @@ bool RunCommandViaPopen(const char* command,
   std::string commandInDir;
   if(dir)
     {
-    commandInDir = "cd ";
+    commandInDir = "cd \"";
     commandInDir += dir;
-    commandInDir += " && ";
+    commandInDir += "\" && ";
     commandInDir += command;
     }
   else