mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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