BUG: Fixed echo command to not print trailing space.

This commit is contained in:
Brad King 2006-02-10 11:41:52 -05:00
parent 62ca4d34c2
commit b403ad61e2

View File

@ -800,9 +800,11 @@ int cmake::CMakeCommand(std::vector<std::string>& args)
else if (args[1] == "echo" ) else if (args[1] == "echo" )
{ {
unsigned int cc; unsigned int cc;
const char* space = "";
for ( cc = 2; cc < args.size(); cc ++ ) for ( cc = 2; cc < args.size(); cc ++ )
{ {
std::cout << args[cc] << " "; std::cout << space << args[cc];
space = " ";
} }
std::cout << std::endl; std::cout << std::endl;
return 0; return 0;