From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 9 06:10:24 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF44316A4CE for ; Fri, 9 Jul 2004 06:10:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C218643D48 for ; Fri, 9 Jul 2004 06:10:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i696ANkw080193 for ; Fri, 9 Jul 2004 06:10:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i696ANqM080192; Fri, 9 Jul 2004 06:10:23 GMT (envelope-from gnats) Resent-Date: Fri, 9 Jul 2004 06:10:23 GMT Resent-Message-Id: <200407090610.i696ANqM080192@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Edwin Groothuis Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5998616A4DB for ; Fri, 9 Jul 2004 06:09:53 +0000 (GMT) Received: from mailout2.barnet.com.au (mailout2.barnet.com.au [218.185.88.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C50C43D45 for ; Fri, 9 Jul 2004 06:09:52 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: by mailout2.barnet.com.au (Postfix, from userid 27) id 1E35FAA622D; Fri, 9 Jul 2004 16:09:51 +1000 (EST) Received: from mail2-auth.barnet.com.au (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Authority" (verified OK)) by mail2.barnet.com.au (Postfix) with ESMTP id D8C9EB29D93 for ; Fri, 9 Jul 2004 16:09:50 +1000 (EST) Received: from k7.mavetju (unknown [10.10.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Certificate Authority" (verified OK)) by mail2-auth.barnet.com.au (Postfix) with ESMTP id 22E3F1943F for ; Fri, 9 Jul 2004 16:09:50 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 6D8DF60ED; Fri, 9 Jul 2004 16:09:48 +1000 (EST) Message-Id: <20040709060948.6D8DF60ED@k7.mavetju> Date: Fri, 9 Jul 2004 16:09:48 +1000 (EST) From: Edwin Groothuis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/68848: [patch] find(1) shows pathname as optional but it isn't. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Edwin Groothuis List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 06:10:24 -0000 >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: