1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00
freebsd/usr.bin/find
Warner Losh 46b993ff99 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.
2008-02-23 16:29:04 +00:00
..
extern.h Implement a number of primaries present in GNU find, but not present 2008-02-23 16:29:04 +00:00
find.1 Implement a number of primaries present in GNU find, but not present 2008-02-23 16:29:04 +00:00
find.c The last execution of -exec {} + is not done if the -exec primary is 2006-05-14 20:23:01 +00:00
find.h Implement a number of primaries present in GNU find, but not present 2008-02-23 16:29:04 +00:00
function.c Implement a number of primaries present in GNU find, but not present 2008-02-23 16:29:04 +00:00
getdate.y Fixes for gcc4.x. 2005-08-25 13:44:02 +00:00
ls.c Use a larger field for the size in blocks; the current width (4 digits) 2004-01-20 09:27:03 +00:00
main.c Fix all WARNS. Checked with "make WARNS=9". Remove unused file. 2003-06-14 13:00:21 +00:00
Makefile - Make find(1) WARNS?= 6 clean 2005-01-25 14:07:25 +00:00
misc.c Use rpmatch() instead of checking for responses that begin with 'y' 2005-04-02 07:44:12 +00:00
operator.c Fix all WARNS. Checked with "make WARNS=9". Remove unused file. 2003-06-14 13:00:21 +00:00
option.c Implement a number of primaries present in GNU find, but not present 2008-02-23 16:29:04 +00:00