From b403ad61e246b4951b67cb689c8ccc7afd7e72b3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 10 Feb 2006 11:41:52 -0500 Subject: BUG: Fixed echo command to not print trailing space. --- Source/cmake.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index da39732..8313750 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -800,9 +800,11 @@ int cmake::CMakeCommand(std::vector& args) else if (args[1] == "echo" ) { unsigned int cc; + const char* space = ""; for ( cc = 2; cc < args.size(); cc ++ ) { - std::cout << args[cc] << " "; + std::cout << space << args[cc]; + space = " "; } std::cout << std::endl; return 0; -- cgit v0.12