mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
BUG: Fixed echo command to not print trailing space.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user