X-Git-Url: https://git.saurik.com/apple/shell_cmds.git/blobdiff_plain/c0fcf4e10b938344ef61467570bddfdc19cc8b7b..1a5bac7242b5267f816c85cfd03283a4f58392b3:/find/option.c diff --git a/find/option.c b/find/option.c index 7e73a5f..a0abc8b 100644 --- a/find/option.c +++ b/find/option.c @@ -72,6 +72,7 @@ static OPTION const options[] = { { "-empty", c_empty, f_empty, 0 }, { "-exec", c_exec, f_exec, 0 }, { "-execdir", c_exec, f_exec, F_EXECDIR }, + { "-false", c_simple, f_not, 0 }, { "-flags", c_flags, f_flags, 0 }, { "-follow", c_follow, f_always_true, 0 }, /* @@ -108,6 +109,7 @@ static OPTION const options[] = { { "-newermm", c_newer, f_newer, 0 }, { "-newermt", c_newer, f_newer, F_TIME2_T }, { "-nogroup", c_nogroup, f_nogroup, 0 }, + { "-not", c_simple, f_not, 0 }, { "-nouser", c_nouser, f_nouser, 0 }, { "-o", c_simple, f_or, 0 }, { "-ok", c_exec, f_exec, F_NEEDOK }, @@ -144,7 +146,7 @@ find_create(argvp) argv = *argvp; if ((p = option(*argv)) == NULL) - errx(1, "%s: unknown option", *argv); + errx(1, "%s: unknown expression primary", *argv); ++argv; new = (p->create)(p, &argv);