mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 01:34:09 +00:00
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
73beb0d530
commit
515c60105d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191009
|
@ -250,6 +250,7 @@ pipeline(void)
|
|||
int negate;
|
||||
|
||||
negate = 0;
|
||||
checkkwd = 2;
|
||||
TRACE(("pipeline: entered\n"));
|
||||
while (readtoken() == TNOT)
|
||||
negate = !negate;
|
||||
|
|
Loading…
Reference in a new issue