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:
Stefan Farfeleder 2009-04-13 19:10:56 +00:00
parent 73beb0d530
commit 515c60105d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191009

View File

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