From owner-freebsd-bugs Tue Mar 27 18:20: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0F0FC37B71A for ; Tue, 27 Mar 2001 18:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2S2K1j77228; Tue, 27 Mar 2001 18:20:01 -0800 (PST) (envelope-from gnats) Received: from fountainhead.sd.bluemt.net (fountainhead.sd.bluemt.net [209.247.76.98]) by hub.freebsd.org (Postfix) with ESMTP id 1E91F37B718 for ; Tue, 27 Mar 2001 18:19:07 -0800 (PST) (envelope-from gordont@fountainhead.sd.bluemt.net) Received: (from gordont@localhost) by fountainhead.sd.bluemt.net (8.11.3/8.11.3) id f2S2JR948906; Tue, 27 Mar 2001 18:19:27 -0800 (PST) (envelope-from gordont) Message-Id: <200103280219.f2S2JR948906@fountainhead.sd.bluemt.net> Date: Tue, 27 Mar 2001 18:19:27 -0800 (PST) From: gordont@bluemtn.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/26160: Fetch usage inconsistent with man page Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26160 >Category: bin >Synopsis: Fetch usage inconsistent with man page >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: Tue Mar 27 18:20:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Gordon Tetlow >Release: FreeBSD 4.3-RC i386 >Organization: Blue Mountain >Environment: System: FreeBSD fountainhead.sd.bluemt.net 4.3-RC FreeBSD 4.3-RC #0: Mon Mar 26 19:20:47 PST 2001 root@fountainhead.sd.bluemt.net:/local/usr.obj/usr/src/sys/FOUNTAINHEAD i386 >Description: The fetch command usage shows: Usage: fetch [-1AFHMPRabdlmnpqrstv] [-o outputfile] [-S bytes] [-B bytes] [-T seconds] [-w seconds] [-f file -h host [-c dir] | URL ...] While the man page shows: SYNOPSIS fetch [-146AFMPRUadlmnpqrsv] [-B bytes] [-S bytes] [-T seconds] [-o file] [-w seconds] [-h host] [-c dir] [-f file] [URL ...] The differences are with the -4 -6 -U -b -t switches. >How-To-Repeat: fetch man fetch >Fix: I fixed the usage function so that it more closely resembled the man page. diff -u fetch.c.orig fetch.c --- fetch.c.orig Tue Mar 27 18:09:30 2001 +++ fetch.c Tue Mar 27 18:17:18 2001 @@ -502,11 +502,10 @@ void usage(void) { - /* XXX badly out of synch */ fprintf(stderr, - "Usage: fetch [-1AFHMPRabdlmnpqrstv] [-o outputfile] [-S bytes]\n" + "Usage: fetch [-146AFMPRUadlmnpqrsv] [-o outputfile] [-S bytes]\n" " [-B bytes] [-T seconds] [-w seconds]\n" - " [-f file -h host [-c dir] | URL ...]\n" + " [-f file] [-h host] [-c dir] [URL ...]\n" ); } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message