Date: Fri, 9 Jul 2004 16:09:48 +1000 (EST) From: Edwin Groothuis <edwin@mavetju.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/68848: [patch] find(1) shows pathname as optional but it isn't. Message-ID: <20040709060948.6D8DF60ED@k7.mavetju> Resent-Message-ID: <200407090610.i696ANqM080192@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 68848 >Category: bin >Synopsis: [patch] find(1) shows pathname as optional but it isn't. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 09 06:10:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 5.2.1-RELEASE i386 >Organization: - >Environment: System: FreeBSD k7.mavetju 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #3: Fri Feb 27 13:54:29 EST 2004 edwin@k7.mavetju:/usr/src/sys/i386/compile/k7 i386 >Description: Find(4) and its manpage say that the pathname is optional: [/usr/src/usr.bin/find] edwin@k7>find usage: find [-H | -L | -P] [-EXdsx] [-f file] [file ...] [expression] [/usr/src/usr.bin/find] edwin@k7>man find find [-H | -L | -P] [-EXdsx] [-f pathname] [pathname ...] expression But I haven't figured out a way to get it running without the pathname and assume it isn't optional. >How-To-Repeat: [/usr/src/usr.bin/find] root@k7>find -name test find: illegal option -- n [/usr/src/usr.bin/find] root@k7>find -- -name test usage: find [-H | -L | -P] [-EXdsx] [-f file] [file ...] [expression] I think it's only fair to update the man page and the usage() of find(4). >Fix: --- find.1.orig Fri Jul 9 15:58:22 2004 +++ find.1 Fri Jul 9 15:58:32 2004 @@ -45,7 +45,7 @@ .Op Fl H | Fl L | Fl P .Op Fl EXdsx .Op Fl f Ar pathname -.Op Ar pathname ... +.Ar pathname ... .Ar expression .Sh DESCRIPTION The [/usr/src/usr.bin/find] root@k7>diff -u main.c.orig main.c --- main.c.orig Fri Jul 9 15:58:53 2004 +++ main.c Fri Jul 9 16:01:44 2004 @@ -164,6 +164,6 @@ usage(void) { (void)fprintf(stderr, -"usage: find [-H | -L | -P] [-EXdsx] [-f file] [file ...] [expression]\n"); +"usage: find [-H | -L | -P] [-EXdsx] [-f pathname] pathname ... expression\n"); exit(1); } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040709060948.6D8DF60ED>