Date: Fri, 27 May 2011 22:14:49 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r222390 - head/usr.bin/find Message-ID: <201105272214.p4RMEnUj055208@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Fri May 27 22:14:49 2011 New Revision: 222390 URL: http://svn.freebsd.org/changeset/base/222390 Log: 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 Modified: head/usr.bin/find/option.c Modified: head/usr.bin/find/option.c ============================================================================== --- head/usr.bin/find/option.c Fri May 27 22:05:10 2011 (r222389) +++ head/usr.bin/find/option.c Fri May 27 22:14:49 2011 (r222390) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105272214.p4RMEnUj055208>