From b79c2f5a4c0e1a36ccffa751046b3e0a16c892d1 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 28 Oct 2003 15:26:00 -0500 Subject: [PATCH] ENH: Command should also be quoted --- Source/cmake.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 06370be3b..11561e813 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -672,11 +672,14 @@ int cmake::CMakeCommand(std::vector& args) else if (args[1] == "chdir" && args.size() >= 4) { std::string directory = args[2]; - std::string command = args[3]; + std::string command = "\""; + command += args[3]; + command += "\""; for (std::string::size_type cc = 4; cc < args.size(); cc ++) { - command += " "; + command += " \""; command += args[cc]; + command += "\""; } int retval = 0;