Mercurial > hg > toybox
comparison toys/posix/find.c @ 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 | 30014454681f |
children | c95588a2b7a2 |
comparison
equal
deleted
inserted
replaced
1422:88aaf45c7fbb | 1423:8059cfd67acd |
---|---|
249 if (not) goto error; | 249 if (not) goto error; |
250 if (active) { | 250 if (active) { |
251 if (!test) test = 1; | 251 if (!test) test = 1; |
252 else active = 0; // decision has been made until next ")" | 252 else active = 0; // decision has been made until next ")" |
253 } | 253 } |
254 | 254 } else if (!strcmp(s, "not")) { |
255 if (check) not = !not; | |
255 // Mostly ignore NOP argument | 256 // Mostly ignore NOP argument |
256 } else if (!strcmp(s, "a") || !strcmp(s, "and")) { | 257 } else if (!strcmp(s, "a") || !strcmp(s, "and")) { |
257 if (not) goto error; | 258 if (not) goto error; |
258 | 259 |
259 } else if (!strcmp(s, "print") || !strcmp("print0", s)) { | 260 } else if (!strcmp(s, "print") || !strcmp("print0", s)) { |