Bug 32615

Summary: libfetch-based fetch(1) has no useful -v output
Product: Base System Reporter: Bill Fenner <fenner>
Component: binAssignee: Dag-Erling Smørgrav <des>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Bill Fenner 2001-12-08 19:10:01 UTC
	

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.

Fix: 

Add the old verbose debugging output back.
How-To-Repeat: 	

Compare "fetch -v" output before and after libfetch-izing.
Comment 1 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-12-09 13:08:44 UTC
Responsible Changed
From-To: freebsd-bugs->des

I wrote libfetch.
Comment 2 des 2001-12-09 13:10:19 UTC
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
Comment 3 Bill Fenner 2001-12-09 14:59:09 UTC
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
Comment 4 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-12-09 15:08:08 UTC
State Changed
From-To: open->feedback

fetch(1) in -CURRENT will now output highly verbose debugging information 
if the -v option is specified more than once on the command line.
Comment 5 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-12-18 09:53:34 UTC
State Changed
From-To: feedback->closed

MFCed, thanks!