Parse 'cmd1 && ! cmd2 | cmd3' correctly, the bang should apply to the entire
pipeline cmd2 | cmd3 and not just cmd2. PR: 130298 Submitted by: Jilles Tjoelker
This commit is contained in:
parent
dfd11f0658
commit
2b5158008f
@ -250,6 +250,7 @@ pipeline(void)
|
||||
int negate;
|
||||
|
||||
negate = 0;
|
||||
checkkwd = 2;
|
||||
TRACE(("pipeline: entered\n"));
|
||||
while (readtoken() == TNOT)
|
||||
negate = !negate;
|
||||
|
Loading…
Reference in New Issue
Block a user