bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Download hangs if stderr is redirected to stdout


From: Ander Juaristi
Subject: Re: Download hangs if stderr is redirected to stdout
Date: Tue, 12 Oct 2021 16:49:53 +0200
User-agent: Roundcube Webmail

Hi,

Though Bash bites to me from time to time (and hence I might be wrong), the last statement doesn't look like valid syntax.

What you're doing is redirecting stdout to a file called '1'. Then the argument '2' is taken as another URL to download. So wget gets that file from GitHub successfully, and then tries to get http://2, which hangs.

The right syntax to redirect stderr to stdout seems to be the first one.

El 2021-10-09 01:09, Joseph Marchand escribió:
#this works
wget 'https://github.com/mikehooper/Minecraft/raw/main/lwjgl3arm32.tar.gz' 2>&1

#this works
wget 'https://github.com/mikehooper/Minecraft/raw/main/lwjgl3arm64.tar.gz'

#this works
wget 'https://github.com/mikehooper/Minecraft/raw/main/lwjgl3arm64.tar.gz' 1>&2

#this works
wget
'https://github.com/mikehooper/Minecraft/raw/main/lwjgl3arm64.tar.gz'
&>/dev/null

#this hangs forever
wget 'https://github.com/mikehooper/Minecraft/raw/main/lwjgl3arm64.tar.gz' 2&>1

This problem only occurs with THIS exact url and THIS exact output-redirection.

Any ideas?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]