Date: Tue, 27 Mar 2001 18:19:27 -0800 (PST) From: gordont@bluemtn.net To: FreeBSD-gnats-submit@freebsd.org Subject: bin/26160: Fetch usage inconsistent with man page Message-ID: <200103280219.f2S2JR948906@fountainhead.sd.bluemt.net>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103280219.f2S2JR948906>
