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:
stefanf 2009-04-13 19:10:56 +00:00
parent dfd11f0658
commit 2b5158008f

View File

@ -250,6 +250,7 @@ pipeline(void)
int negate;
negate = 0;
checkkwd = 2;
TRACE(("pipeline: entered\n"));
while (readtoken() == TNOT)
negate = !negate;