Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377085 - wget produces error when brackets [] are in URL
Summary: wget produces error when brackets [] are in URL
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-30 16:38 UTC by Timothy Miller
Modified: 2011-07-30 17:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Miller 2011-07-30 16:38:16 UTC
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
Comment 1 Mike Gilbert gentoo-dev 2011-07-30 16:45:47 UTC
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]
Comment 2 Timothy Miller 2011-07-30 17:32:01 UTC
Ah, my bad.  I had screwed up how I set up Tor, and that was interfering.