diff options
author | Hugh Graham <hugh@cvs.openbsd.org> | 2001-08-22 23:02:49 +0000 |
---|---|---|
committer | Hugh Graham <hugh@cvs.openbsd.org> | 2001-08-22 23:02:49 +0000 |
commit | 72f365027fc58cbd0c6482e05c1943ac23a6b2f0 (patch) | |
tree | 0c45f9063d27f870fc98f9625e9c6e099f5b6a1c /usr.bin | |
parent | 71b936e4c451995543154c3dfcc82b27261de946 (diff) |
Since we're in pedant mode again, we might as well be thorough. It's
bad form to assume that the absence of an expression will default to
"-print", as one may still encounter versions of find where this is
not the case. The examples given are all careful to use an explicit
"-print", so follow their lead and mark the expression as a required
field even though find will run without one.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/find/find.1 | 6 | ||||
-rw-r--r-- | usr.bin/find/main.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index b37d297e0a2..c1edb0c7fe8 100644 --- a/usr.bin/find/find.1 +++ b/usr.bin/find/find.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: find.1,v 1.32 2001/08/22 16:50:50 heko Exp $ +.\" $OpenBSD: find.1,v 1.33 2001/08/22 23:02:48 hugh Exp $ .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -46,7 +46,7 @@ .Op Fl HdhXxW .Op Fl f Ar file .Ar file Op Ar ... -.Op Ar expression +.Ar expression .Sh DESCRIPTION .Nm recursively descends the directory tree for each @@ -56,7 +56,7 @@ listed, evaluating an (composed of the .Dq primaries and -.Dq operators +.Dq operands listed below) in terms of each file in the tree. .Pp diff --git a/usr.bin/find/main.c b/usr.bin/find/main.c index dc5522b473a..ac91924a785 100644 --- a/usr.bin/find/main.c +++ b/usr.bin/find/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.10 2001/08/22 16:50:50 heko Exp $ */ +/* $OpenBSD: main.c,v 1.11 2001/08/22 23:02:48 hugh Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: main.c,v 1.10 2001/08/22 16:50:50 heko Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.11 2001/08/22 23:02:48 hugh Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -145,6 +145,6 @@ static void usage() { (void)fprintf(stderr, - "usage: find [-HdhXxW] [-f file] file [...] [expression]\n"); + "usage: find [-HdhXxW] [-f file] file [...] expression\n"); exit(1); } |