aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/posix/find.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/posix/find.c b/toys/posix/find.c
index 6b434c1e..b1aa6845 100644
--- a/toys/posix/find.c
+++ b/toys/posix/find.c
@@ -251,7 +251,8 @@ static int do_find(struct dirtree *new)
if (!test) test = 1;
else active = 0; // decision has been made until next ")"
}
-
+ } else if (!strcmp(s, "not")) {
+ if (check) not = !not;
// Mostly ignore NOP argument
} else if (!strcmp(s, "a") || !strcmp(s, "and")) {
if (not) goto error;