]> git.saurik.com Git - apple/shell_cmds.git/blobdiff - find/option.c
shell_cmds-81.tar.gz
[apple/shell_cmds.git] / find / option.c
index 7e73a5fdc5032e56f11ae613704b0e5f1236bae9..a0abc8be07592bb375ec994cacd8442667ce5290 100644 (file)
@@ -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);