I'm trying to use wget to download a file that legitimately has brackets in the filename. They are not wildcards. It doesn't matter if I escape the brackets or put in single quotes or double quotes. There is no way to pass to wget a URL that contains brackets. If I use the --no-glob option, the error goes away, but I'm still not able to download the file because I think wget is messing up the URL. Try this: wget --no-glob "http://torrents.thepiratebay.org/6571922/Torchwood_S04E04_HDTV_XviD-LOL_[eztv].6571922.TPB.torrent" Reproducible: Always
Works fine for me with wget-1.12-r3. floppym@naomi ~ % wget --no-glob "http://torrents.thepiratebay.org/6571922/Torchwood_S04E04_HDTV_XviD-LOL_[eztv].6571922.TPB.torrent" --2011-07-30 12:44:40-- http://torrents.thepiratebay.org/6571922/Torchwood_S04E04_HDTV_XviD-LOL_[eztv].6571922.TPB.torrent Resolving torrents.thepiratebay.org... 194.71.107.19 Connecting to torrents.thepiratebay.org|194.71.107.19|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 22449 (22K) [application/x-bittorrent] Saving to: “Torchwood_S04E04_HDTV_XviD-LOL_[eztv].6571922.TPB.torrent.1” 100%[==========================================================>] 22,449 118K/s in 0.2s 2011-07-30 12:44:41 (118 KB/s) - “Torchwood_S04E04_HDTV_XviD-LOL_[eztv].6571922.TPB.torrent.1” saved [22449/22449]
Ah, my bad. I had screwed up how I set up Tor, and that was interfering.