Mercurial > hg > toybox
changeset 1423:8059cfd67acd draft
Building busybox from source needs find -not (a synonym for posix's "!").
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 05 Aug 2014 19:32:44 -0500 |
parents | 88aaf45c7fbb |
children | c95588a2b7a2 |
files | toys/posix/find.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/posix/find.c Tue Aug 05 19:27:02 2014 -0500 +++ b/toys/posix/find.c Tue Aug 05 19:32:44 2014 -0500 @@ -251,7 +251,8 @@ 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;