Date: Fri, 3 Jun 2011 18:18:54 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r222657 - stable/8/usr.bin/find Message-ID: <201106031818.p53IIseF074931@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Fri Jun 3 18:18:54 2011 New Revision: 222657 URL: http://svn.freebsd.org/changeset/base/222657 Log: MFC r222390: 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 Modified: stable/8/usr.bin/find/option.c Directory Properties: stable/8/usr.bin/find/ (props changed) Modified: stable/8/usr.bin/find/option.c ============================================================================== --- stable/8/usr.bin/find/option.c Fri Jun 3 17:49:16 2011 (r222656) +++ stable/8/usr.bin/find/option.c Fri Jun 3 18:18:54 2011 (r222657) @@ -176,7 +176,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?201106031818.p53IIseF074931>