From owner-cvs-all@FreeBSD.ORG Sat Feb 23 16:29:05 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1815C16A400; Sat, 23 Feb 2008 16:29:05 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0C7D513C448; Sat, 23 Feb 2008 16:29:05 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1NGT5D0095711; Sat, 23 Feb 2008 16:29:05 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1NGT428095710; Sat, 23 Feb 2008 16:29:04 GMT (envelope-from imp) Message-Id: <200802231629.m1NGT428095710@repoman.freebsd.org> From: Warner Losh Date: Sat, 23 Feb 2008 16:29:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/find extern.h find.1 find.h function.c option.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 16:29:05 -0000 imp 2008-02-23 16:29:04 UTC FreeBSD src repository Modified files: usr.bin/find extern.h find.1 find.h function.c option.c Log: Implement a number of primaries present in GNU find, but not present in our find. The following are nops because they aren't relevant to our find: -ignore_readdir_race -noignore_readdir_race -noleaf The following aliaes were created: -gid -> -group [2] -uid -> -user [2] -wholename -> -path -iwholename -> ipath -mount -> -xdev -d -> -depth [1] The following new primaries were created: -lname like -name, but matches symbolic links only) -ilname like -lname but case insensitive -quit exit(0) -samefile returns true for hard links to the specified file -true Always true I changed one primary to match GNU find since I think our use of it violates POLA -false Always false (was an alias for -not!) Also, document the '+' modifier for -execdir, as well as all of the above. This was previously implemented. Document the remaining 7 primaries that are in GNU find, but aren't yet implemented in find(1) [1] This was done in GNU find for compatibility with FreeBSD, yet they mixed up command line args and primary args. [2] -uid/-gid in GNU find ONLY takes a numeric arg, but that arg does the normal range thing that. GNU find -user and -uid also take a numberic arg, but don't do the range processing. find(1) does both for -user and -group, so making -uid and -gid aliases is compatible for all non-error cases used in GNU find. While not perfect emulation, this seems a reasonable thing for us. Revision Changes Path 1.24 +3 -0 src/usr.bin/find/extern.h 1.83 +75 -1 src/usr.bin/find/find.1 1.20 +1 -0 src/usr.bin/find/find.h 1.59 +57 -3 src/usr.bin/find/function.c 1.26 +23 -1 src/usr.bin/find/option.c