Building busybox from source needs find -not (a synonym for posix's "!").
authorRob Landley <rob@landley.net>
Wed, 6 Aug 2014 00:32:44 +0000 (19:32 -0500)
committerRob Landley <rob@landley.net>
Wed, 6 Aug 2014 00:32:44 +0000 (19:32 -0500)
toys/posix/find.c

index 6b434c1..b1aa684 100644 (file)
@@ -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;