summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-10 16:41:52 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-10 16:41:52 (GMT)
commitb403ad61e246b4951b67cb689c8ccc7afd7e72b3 (patch)
treed4692fe071dc4a924b19076477052f95c8ec074c
parent62ca4d34c24a94884924ccf261fd5906d9f99f93 (diff)
downloadCMake-b403ad61e246b4951b67cb689c8ccc7afd7e72b3.zip
CMake-b403ad61e246b4951b67cb689c8ccc7afd7e72b3.tar.gz
CMake-b403ad61e246b4951b67cb689c8ccc7afd7e72b3.tar.bz2
BUG: Fixed echo command to not print trailing space.
-rw-r--r--Source/cmake.cxx4
1 files changed, 3 insertions, 1 deletions
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<std::string>& 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;