wget-log file created despite -q when run in background with &

Bug #1765690 reported by Jani Uusitalo
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
wget (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

== Steps to reproduce ==
`wget -q https://www.google.com/ &`

== What happens ==
wget says it's "Redirecting output to 'wget-log'" and creates an empty wget-log file in the current directory.

== What I expect to happen ==
No wget-log file to be created.

== Details ==
Wget has a -b (--background) option, for which the man page says: "If no output file is specified via the -o, output is redirected to wget-log." There's also the -q (--quiet) option, for which the man page says: "Turn off Wget's output."

When both are given, wget goes to background, and no wget-log gets created, as expected.

When only -b is given, wget goes to background, and creates wget-log, also as expected.

When only -q is given, wget runs in the foreground, and no wget-log is created, still as expected.

When only -q is given, but & is added to the end of the command line, wget goes to background, but also creates wget-log, which I find unexpected (and inconsistent).

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: wget 1.19.4-1ubuntu2
ProcVersionSignature: Ubuntu 4.15.0-15.16-generic 4.15.15
Uname: Linux 4.15.0-15-generic x86_64
ApportVersion: 2.20.9-0ubuntu5
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 20 14:56:17 2018
InstallationDate: Installed on 2016-10-13 (553 days ago)
InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fi_FI.UTF-8
 SHELL=/bin/bash
SourcePackage: wget
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jani Uusitalo (uusijani) wrote :
Revision history for this message
Jani Uusitalo (uusijani) wrote :

Red Hat issue: https://bugzilla.redhat.com/show_bug.cgi?id=1484411 "Running wget with -O and -q in the background yields a file wget-log"

Related but (FWICT) not precisely the same issues upstream:

* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888691 "wget -b produces empty wget-log file"
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874590 "wget: creates log file when run in the background", forwarded to https://savannah.gnu.org/bugs/?51181 "Unexpected "Redirecting output to 'wget-log'.""

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wget (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.