cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl - globbing error

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Mon, 8 Aug 2016 21:29:11 -0400

On Mon, Aug 8, 2016 at 8:49 PM, GNUser <gnuser_at_openmailbox.org> wrote:

> > On Mon, Aug 8, 2016 at 7:57 PM, GNUser <gnuser_at_openmailbox.org> wrote:
> >
> >> Hello everyone,
> >>
> >> So I tried to use curl to download this link
> >> (https://archive.org/download/TheNiceGuys20161080pYTS.AG/
> >> The.Nice.Guys.2016.1080p.BluRay.x264-[YTS.AG].mp4)
> >> and it gave me this error (curl: (3) [globbing] bad range in column 99).
> >> I understand it has something to do with the "-[" part of it. Any ideas
> >> how to solve it?
> >>
> >
> > Try escaping the square brackets and put single quotes around the whole
> URL:
> >
> > 'https://.......\[YTS.AG\].mp4'
>
>
> Thanks! That worked like a charm.
> Should it be considered a bug and fixed in a future release?

It's not a bug. The square brackets are generally used for globbing. As
an alternative to escaping them, there's a command line switch to disable
globbing: --globoff

Ralph Mitchell

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-08-09