remove non-generation of redirects in empty commands
This commit is contained in:
parent
7d26587dd2
commit
8e79e10e60
1 changed files with 0 additions and 6 deletions
|
|
@ -345,12 +345,6 @@ std::string cmd::generate(int ind)
|
||||||
if(ret[ret.size()-1] == ' ')
|
if(ret[ret.size()-1] == ' ')
|
||||||
ret.pop_back();
|
ret.pop_back();
|
||||||
}
|
}
|
||||||
else if(opt_minimize) // minimize: empty command: don't put redirects
|
|
||||||
{
|
|
||||||
if(ret.size()>0)
|
|
||||||
ret.pop_back();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
else // empty command: remove trailing space
|
else // empty command: remove trailing space
|
||||||
{
|
{
|
||||||
if(ret.size()>0)
|
if(ret.size()>0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue