scripts/get_archive, tools-distro-tool: fix wget redirection issue when wget running in background #2943
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue discussed here, although doesn't actually resolve it as latest 1.19.5 still has the same issue, in which case I'm not sure if this is a regression/bug in
wget
or new/expected behaviour.To reproduce:
/tmp/test.sh
/tmp/test.sh
as a "background" processResult: instead of the output from
wget
being sent to the console, it is sent instead towget-log
in the current directory. And ifwget-log
exists, thenwget-log.1
is created, thenwget-log.2
etc. etc.Adding
--output-file=-
overrides the buggy/new behaviour wheneverwget
is being run in the background.Edit to add OS details:
Ubuntu 16.04 with
wget
1.17.1:wget
output always appears in the console regardless of whetherwget
is a foreground or background process.Ubuntu 17.10 with
wget
1.19.1 (and presumably later):wget
output appears in the console whenwget
is a foreground process, but is redirected towget-log
when a background process.