[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] [bug #45790] wget prints it's progress even when backgrou
From: |
Darshit Shah |
Subject: |
Re: [Bug-wget] [bug #45790] wget prints it's progress even when background |
Date: |
Tue, 18 Aug 2015 20:56:32 +0530 |
This affects an invokation using the shell's background operator (&) too.
E.g.: wget
http://cdimage.debian.org/debian-cd/current/multi-arch/iso-cd/debian-8.1.0-amd64-i386-netinst.iso
&
will cause the logging output and progress bar to be displayed on the
terminal as explained in the bug report.
However, I am not willing to fix that behaviour. A huge number of
people copy URLs and paste them in their terminals for Wget to
download without double-quoting them. A large number of these URLs
have the "&" character which causes the shell to background the
process. They tend to realise that something went wrong when the
screen is garbled by a background process spewing messages to stdout
and stderr. If this behaviour is changed, many people won't realise
their error and un-necessarily invoke multiple instances of
backgrounded Wget processes, eventually coming back here with new bug
reports.
The bahviour has remained so for a long time and I'm inclined to
retain the status quo.
On Tue, Aug 18, 2015 at 2:33 PM, NoëlKöthe <address@hidden> wrote:
> URL:
> <http://savannah.gnu.org/bugs/?45790>
>
> Summary: wget prints it's progress even when background
> Project: GNU Wget
> Submitted by: nok
> Submitted on: Di 18 Aug 2015 11:03:31 CEST
> Category: User Interface
> Severity: 3 - Normal
> Priority: 5 - Normal
> Status: None
> Privacy: Public
> Assigned to: None
> Originator Name:
> Originator Email:
> Open/Closed: Open
> Discussion Lock: Any
> Release: None
> Operating System: None
> Reproducibility: None
> Fixed Release: None
> Planned Release: None
> Regression: None
> Work Required: None
> Patch Included: None
>
> _______________________________________________________
>
> Details:
>
> Hello,
>
> an old forgotten bug report:
>
> --8<--
> When wget is suspended in command line and then
> send into background (eg using bash bg command), it continues
> to print it's progress messages. This leads to either stopping
> wget or to garbling terminal with wget messages (depending
> on the TOSTOP terminal setting).
> --8<--
> My suggestion is to stop printing verbose progress messages
> when the job is resumed in background. It could be checked
> by (successful) getpgrp() not equal to (successful) tcgetprp(1)
> in SIGCONT signal handler.
> And something like this is used in some console applications,
> for example, in lftp.
> --8<--
> https://bugs.debian.org/281201
>
> As an example:
>
> # wget
> http://cdimage.debian.org/debian-cd/current/multi-arch/iso-cd/debian-8.1.0-amd64-i386-netinst.iso
> <Press ctrl+z>
> [1]+ Stopped wget
> http://cdimage.debian.org/debian-cd/current/multi-arch/iso-cd/debian-8.1.0-amd64-i386-netinst.iso
> address@hidden:/tmp/test$ bg
> <garbling the terminal but commands work as expected>
>
> Regards
>
> Noël
>
>
>
>
> _______________________________________________________
>
> Reply to this item at:
>
> <http://savannah.gnu.org/bugs/?45790>
>
> _______________________________________________
> Nachricht gesendet von/durch Savannah
> http://savannah.gnu.org/
>
--
Thanking You,
Darshit Shah