-maxdepth and -mindepth are global variables

PR:		66613
Approved by:	ru
MFC after:	3 days
This commit is contained in:
Oliver Eikemeier 2004-05-14 12:58:13 +00:00
parent 03f110294b
commit d79829af6c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129211

View File

@ -427,11 +427,24 @@ The format is identical to that produced by
.Nm ls Fl dgils .
.Ek
.It Ic -maxdepth Ar n
True if the depth of the current file into the tree is less than or equal to
Always true; do not apply any tests or actions at levels less than
.Ar n .
If any
.Ic -maxdepth
primary is specified, it applies to the entire expression even if it would
not normally be evaluated.
.Ic -maxdepth Li 0
limits the whole search to the command line arguments.
.It Ic -mindepth Ar n
True if the depth of the current file into the tree is greater than or equal to
.Ar n .
Always true; descend at most
.Ar n
directory levels below the command line arguments.
If any
.Ic -mindepth
primary is specified, it applies to the entire expression even if it would
not normally be evaluated.
.Ic -mindepth Li 1
processes all but the command line arguments.
.It Ic -mmin Ar n
True if the difference between the file last modification time and the time
.Nm