From fenner@research.att.com  Sat Dec  8 11:04:46 2001
Return-Path: <fenner@research.att.com>
Received: from stash.attlabs.att.com (mpfg.attlabs.net [12.106.35.2])
	by hub.freebsd.org (Postfix) with ESMTP id 7B84937B419
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Dec 2001 11:04:45 -0800 (PST)
Received: (from fenner@localhost)
	by stash.attlabs.att.com (8.11.6/8.11.6) id fB8J4R931891;
	Sat, 8 Dec 2001 11:04:27 -0800 (PST)
	(envelope-from fenner)
Message-Id: <200112081904.fB8J4R931891@stash.attlabs.att.com>
Date: Sat, 8 Dec 2001 11:04:27 -0800 (PST)
From: Bill Fenner <fenner@research.att.com>
Reply-To: Bill Fenner <fenner@research.att.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: libfetch-based fetch(1) has no useful -v output
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32615
>Category:       bin
>Synopsis:       libfetch-based fetch(1) has no useful -v output
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 08 11:10:01 PST 2001
>Closed-Date:    Tue Dec 18 01:53:34 PST 2001
>Last-Modified:  Tue Dec 18 01:53:35 PST 2001
>Originator:     Bill Fenner
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
AT&T
>Environment:
System: FreeBSD stash.attlabs.att.com 5.0-CURRENT FreeBSD 5.0-CURRENT #53: Thu Dec 6 13:03:35 PST 2001 root@stash.attlabs.att.com:/usr/obj/usr/src/sys/STASHNOV6 i386


	
>Description:
	

libfetch-based fetch(1) has no useful -v output.  The old fetch(1)
printed out each command, so that you could see which one failed,
e.g.

nectar% fetch -v ftp://ftp.csd.uch.gr/pub/X11/games/xvmines-1.0.tar.Z
Sending: USER anonymous

Welcome to the CSD archive. Please login as ftp or anonymous with
your e-mail address as the password to access the anonymous archive,
or use your own login name and password.

crete.csd.uch.gr FTP server (Version wu-2.6.1(2) Tue Aug 22 12:18:26 EET DST 2000) ready.
Guest login ok, send your complete e-mail address as password.
Sending: PASS fenner@nectar.attlabs.att.com
Guest `anonymous' login ok, access restrictions apply.
...
Guest login ok, access restrictions apply.
Sending: TYPE I
Type set to I.
Sending: CWD pub
pub: No such file or directory.
fetch: ftp.csd.uch.gr: pub: File unavailable (e.g., file not found, no access)
nectar%  

The new fetch(1) says nothing useful:

stash% fetch -v -v -v -v ftp://ftp.csd.uch.gr/%2fpub/X11/games/xvmines-1.0.tar.Z
looking up ftp.csd.uch.gr
connecting to ftp.csd.uch.gr:21
fetch: xvmines-1.0.tar.Z: File unavailable (e.g., file not found, no access)
stash% 


http is similar.

>How-To-Repeat:
	

Compare "fetch -v" output before and after libfetch-izing.

>Fix:

	

Add the old verbose debugging output back.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: des 
Responsible-Changed-When: Sun Dec 9 05:08:44 PST 2001 
Responsible-Changed-Why:  
I wrote libfetch. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32615 

From: Dag-Erling Smorgrav <des@ofug.org>
To: Bill Fenner <fenner@research.att.com>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/32615: libfetch-based fetch(1) has no useful -v output
Date: 09 Dec 2001 14:10:19 +0100

 Bill Fenner <fenner@research.att.com> writes:
 > libfetch-based fetch(1) has no useful -v output.  The old fetch(1)
 > printed out each command, so that you could see which one failed,
 
 libfetch does this if you build it with -DDEBUG.  The output it
 produces is very verbose, though - quite possibly more verbose than
 you might like.
 
 DES
 -- 
 Dag-Erling Smorgrav - des@ofug.org

From: Bill Fenner <fenner@research.att.com>
To: des@ofug.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/32615: libfetch-based fetch(1) has no useful -v output
Date: Sun, 9 Dec 2001 06:59:09 -0800

 Well, consider this a feature request, then, to add a reasonable
 level of output with -v (or maybe -v -v).  I'd define "reasonable"
 as "somewhat like how the old fetch worked".
 
   Bill
State-Changed-From-To: open->feedback 
State-Changed-By: des 
State-Changed-When: Sun Dec 9 07:08:08 PST 2001 
State-Changed-Why:  
fetch(1) in -CURRENT will now output highly verbose debugging information 
if the -v option is specified more than once on the command line. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32615 
State-Changed-From-To: feedback->closed 
State-Changed-By: des 
State-Changed-When: Tue Dec 18 01:53:34 PST 2001 
State-Changed-Why:  
MFCed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32615 
>Unformatted:
