svn commit: r222657 - stable/8/usr.bin/find

Jilles Tjoelker jilles at FreeBSD.org
Fri Jun 3 18:18:55 UTC 2011


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);


More information about the svn-src-stable-8 mailing list