Message ID | Y5BU6+7igxd21p8o@gondor.apana.org.au (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show |
Series | eval: Test evalskip before flipping status for NNOT | expand |
diff --git a/src/eval.c b/src/eval.c index 7aa5cc2..fa43b68 100644 --- a/src/eval.c +++ b/src/eval.c @@ -238,7 +238,9 @@ evaltree(union node *n, int flags) break; #endif case NNOT: - status = !evaltree(n->nnot.com, EV_TESTED); + status = evaltree(n->nnot.com, EV_TESTED); + if (!evalskip) + status = !status; break; case NREDIR: errlinno = lineno = n->nredir.linno;