Bug 30764

Summary: PATCH: fetch(1) prints d/l status even if in background
Product: Base System Reporter: AnarCat <AnarCat>
Component: binAssignee: Dag-Erling Smørgrav <des>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description AnarCat 2001-09-23 19:40:01 UTC
The fetch(1) utility (used mainly to fetch ports distfiles) features a
display of the current progress of the download. 

When you put fetch(1) in background, it keeps on clobbering the terminal
with that status, which is really annoying. ftp(1) on the other hand,
gracefully checks if it's the foreground process before doing that.

Some might consider this a feature, I call it a bug. :)

Fix: I stole the code from ftp(1), so there should be any problems...
How-To-Repeat: 
$ fetch ftp://ftp11.freebsd.org/pub/FreeBSD/ports/packages/Latest/samba.tgz &
Comment 1 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-09-23 22:34:40 UTC
Responsible Changed
From-To: freebsd-bugs->des

fetch(1) is mine.
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-09-23 23:03:45 UTC
State Changed
From-To: open->feedback

Functionally similar patch applied to -CURRENT, awaiting MFC.
Comment 3 AnarCat 2001-10-10 20:39:49 UTC
this pr can be closed, MFC'd on:

Revision 1.10.2.16, Sat Oct 6 00:53:25 2001 UTC

A.
Comment 4 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-10-11 11:52:08 UTC
State Changed
From-To: feedback->closed

Fixed.