BUG: Fixed echo command to not print trailing space.
This commit is contained in:
parent
62ca4d34c2
commit
b403ad61e2
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user