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