summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2006-10-11 19:16:28 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2006-10-11 19:16:28 +0000
commit2c64da75483bbc4e8f1a950e2729b178794df27a (patch)
treed30f9cbb6e98e4f04cb624128882933f0d4c6ccb
parent1bbc70f8e2b2b1c9379ea97bfc106ffe88c5fbe5 (diff)
some important information about how find(1) works was tucked away
under -print, and slightly inaccurate anway; move it up into DESCRIPTION and correct it; from otto and myself
-rw-r--r--usr.bin/find/find.122
1 files changed, 12 insertions, 10 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1
index 2937d408786..b0925bd085d 100644
--- a/usr.bin/find/find.1
+++ b/usr.bin/find/find.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: find.1,v 1.65 2006/10/11 16:10:32 jmc Exp $
+.\" $OpenBSD: find.1,v 1.66 2006/10/11 19:16:27 jmc Exp $
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -58,6 +58,17 @@ of each file in the tree.
In the absence of an expression,
.Ic -print
is assumed.
+If an expression is given,
+but none of the primaries
+.Ic -exec ,
+.Ic -ls ,
+.Ic -ok ,
+.Ic -print ,
+or
+.Ic -print0
+are specified, the given expression shall be effectively replaced by
+.Cm \&( Ar given expression Cm \&)
+.Ic -print .
.Pp
The options are as follows:
.Bl -tag -width Ds
@@ -383,15 +394,6 @@ It prints the pathname of the current file to standard output, followed
by a newline
.Pq Ql \en
character.
-If neither
-.Ic -exec ,
-.Ic -ls ,
-.Ic -ok ,
-nor
-.Ic -print0
-is specified, the given expression shall be effectively replaced by
-.Cm \&( Ns Ar given\& expression Ns Cm \&)
-.Ic -print .
.It Ic -print0
This primary always evaluates to true.
It prints the pathname of the current file to standard output, followed