diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-08-22 23:43:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-08-22 23:43:14 +0000 |
commit | c973bb7801044f05f07943b2fe4c95b9ce945385 (patch) | |
tree | bddc984e7d16146f5ace76ca1a8f1dd136bd6eaa | |
parent | becc2d90bf264d59fa152281c71ded660213e145 (diff) |
expression is optional
-rw-r--r-- | usr.bin/find/find.1 | 7 | ||||
-rw-r--r-- | usr.bin/find/main.c | 6 |
2 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index c1edb0c7fe8..da1f05db65f 100644 --- a/usr.bin/find/find.1 +++ b/usr.bin/find/find.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: find.1,v 1.33 2001/08/22 23:02:48 hugh Exp $ +.\" $OpenBSD: find.1,v 1.34 2001/08/22 23:43:13 deraadt 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 ... -.Ar expression +.Op Ar expression .Sh DESCRIPTION .Nm recursively descends the directory tree for each @@ -59,6 +59,9 @@ and .Dq operands listed below) in terms of each file in the tree. +In the absence of an expression, +.Ic -print +is assumed. .Pp The options are as follows: .Bl -tag -width Ds diff --git a/usr.bin/find/main.c b/usr.bin/find/main.c index ac91924a785..c34c8effd1c 100644 --- a/usr.bin/find/main.c +++ b/usr.bin/find/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.11 2001/08/22 23:02:48 hugh Exp $ */ +/* $OpenBSD: main.c,v 1.12 2001/08/22 23:43:13 deraadt 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.11 2001/08/22 23:02:48 hugh Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.12 2001/08/22 23:43:13 deraadt 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); } |