Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/find add a "file" to the arguments that isn't enclos...
details: https://anonhg.NetBSD.org/src/rev/4b6277cc89ab
branches: trunk
changeset: 583508:4b6277cc89ab
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Aug 10 06:51:24 2005 +0000
description:
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.
diffstat:
usr.bin/find/find.1 | 3 ++-
usr.bin/find/main.c | 6 +++---
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (43 lines):
diff -r 37f0ebb101d7 -r 4b6277cc89ab usr.bin/find/find.1
--- a/usr.bin/find/find.1 Wed Aug 10 00:18:18 2005 +0000
+++ b/usr.bin/find/find.1 Wed Aug 10 06:51:24 2005 +0000
@@ -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
diff -r 37f0ebb101d7 -r 4b6277cc89ab usr.bin/find/main.c
--- a/usr.bin/find/main.c Wed Aug 10 00:18:18 2005 +0000
+++ b/usr.bin/find/main.c Wed Aug 10 06:51:24 2005 +0000
@@ -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 @@
#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 @@
{
(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);
}
Home |
Main Index |
Thread Index |
Old Index