find: If a part of an expression is unknown, do not call it an option.
Although most of the primaries and operators start with "-", they are not options. Examples: find . -xyz find . -name xyz -or bad MFC after: 1 week
This commit is contained in:
parent
ff29f3b241
commit
702b4f04ea
@ -172,7 +172,7 @@ find_create(char ***argvp)
|
||||
argv = *argvp;
|
||||
|
||||
if ((p = lookup_option(*argv)) == NULL)
|
||||
errx(1, "%s: unknown option", *argv);
|
||||
errx(1, "%s: unknown primary or operator", *argv);
|
||||
++argv;
|
||||
|
||||
new = (p->create)(p, &argv);
|
||||
|
Loading…
Reference in New Issue
Block a user