From a4b04375d2b31ab720ac03e338521683b29a38cb Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 29 Nov 2002 16:35:43 -0500 Subject: [PATCH] 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 --- Source/cmSystemTools.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 72c90155f..6f89f9425 100644 --- a/Source/cmSystemTools.cxx +++ b/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