add a "file" to the arguments that isn't enclosed in square brackets
making it clear that at least one file/directory argument is required in both the manual and usage. "find" with no args currently barfs but these documents implied it would do something useful.
This commit is contained in:
parent
fcb89ca5cb
commit
3a96c9add9
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: find.1,v 1.51 2004/04/19 00:28:11 lukem Exp $
|
||||
.\" $NetBSD: find.1,v 1.52 2005/08/10 06:51:24 mrg Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1990, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -43,6 +43,7 @@
|
||||
.Op Fl H | Fl L | Fl P
|
||||
.Op Fl dhsXx
|
||||
.Op Fl f Ar file
|
||||
.Ar file
|
||||
.Op Ar file ...
|
||||
.Ar expression
|
||||
.Sh DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.21 2005/01/19 01:03:16 mycroft Exp $ */
|
||||
/* $NetBSD: main.c,v 1.22 2005/08/10 06:51:24 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993, 1994
|
||||
@ -39,7 +39,7 @@ static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
|
||||
#else
|
||||
__COPYRIGHT("@(#) Copyright (c) 1990, 1993, 1994\n\
|
||||
The Regents of the University of California. All rights reserved.\n");
|
||||
__RCSID("$NetBSD: main.c,v 1.21 2005/01/19 01:03:16 mycroft Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.22 2005/08/10 06:51:24 mrg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -163,6 +163,6 @@ usage()
|
||||
{
|
||||
|
||||
(void)fprintf(stderr,
|
||||
"usage: find [-H | -L | -P] [-Xdhsx] [-f file] [file ...] [expression]\n");
|
||||
"usage: find [-H | -L | -P] [-Xdhsx] [-f file] file [file ...] [expression]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user