Add more description and clarification about the -depth and -d options in

both places where they are mentioned in find(1).

Discussed with:	dougb
PR:		docs/168885
Reported by:	Ronald F. Guilmette (rfg at tristatelogic dot com)
Approved by:	gabor (mentor)
MFC after:	3 days
This commit is contained in:
Isabell Long 2012-06-10 22:14:52 +00:00
parent effb6326a1
commit a86224465d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236860

View File

@ -136,7 +136,7 @@ Note, the default is
.Em not .Em not
a breadth-first traversal. a breadth-first traversal.
.Pp .Pp
This option is equivalent to the This option is the BSD-specific equivalent of the
.Ic -depth .Ic -depth
primary of primary of
.St -p1003.1-2001 . .St -p1003.1-2001 .
@ -301,7 +301,7 @@ Please refer to the
.Ic -atime .Ic -atime
primary description for information on supported time units. primary description for information on supported time units.
.It Ic -d .It Ic -d
Same as Non-portable, BSD-specific version of
.Ic depth . .Ic depth .
GNU find implements this as a primary in mistaken emulation of GNU find implements this as a primary in mistaken emulation of
.Fx .Fx
@ -325,9 +325,10 @@ primary will fail to delete a directory if it is not empty.
Following symlinks is incompatible with this option. Following symlinks is incompatible with this option.
.It Ic -depth .It Ic -depth
Always true; Always true;
same as the same as the non-portable
.Fl d .Fl d
option. option. Refer to the primary description of
.Ic -depth for full information.
.It Ic -depth Ar n .It Ic -depth Ar n
True if the depth of the file relative to the starting point of the traversal True if the depth of the file relative to the starting point of the traversal
is is