From b7dd2d4f96557a3a21d6a6c28e09f4242deab5ba Mon Sep 17 00:00:00 2001 From: jilles Date: Fri, 27 May 2011 22:14:49 +0000 Subject: 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 --- usr.bin/find/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/find/option.c b/usr.bin/find/option.c index b2374e6..f8745b2 100644 --- a/usr.bin/find/option.c +++ b/usr.bin/find/option.c @@ -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); -- cgit v1.1