소스 검색

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