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

This commit is contained in:
Andy Cedilnik 2002-11-29 16:35:43 -05:00
parent 01efac63e2
commit a4b04375d2
1 changed files with 2 additions and 2 deletions

View File

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