Remove trailing space on empty commands
This commit is contained in:
parent
2b1e7c008b
commit
2a86e06551
1 changed files with 5 additions and 0 deletions
|
|
@ -330,6 +330,11 @@ std::string cmd::generate(int ind)
|
|||
ret.pop_back();
|
||||
return ret;
|
||||
}
|
||||
else // empty command: remove trailing space
|
||||
{
|
||||
if(ret.size()>0)
|
||||
ret.pop_back();
|
||||
}
|
||||
|
||||
ret += generate_redirs(ind, ret);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue