curl: (3) [globbing] illegal character in range specification at pos
Silly little error I ran into trying to use curl against a Solr endpoint:
curl: (3) [globbing] illegal character in range specification at pos 79
Escaping the brackets fixed the error, for example:
curl “http://localhost/getresults?q=date:\[2008 TO 2009\]“
A

R Said,
August 24, 2011 @ 11:16 pm
Ran into this today and also found out that -g will disable globbing!
curl -g “http://localhost/getresults?q=date:[2008 TO 2009]“
andrew Said,
October 2, 2011 @ 10:52 am
Nice! That is much better than escaping them.
David Kendall Said,
January 8, 2013 @ 2:30 pm
Thank you! I was facing exactly the same issue and this post gave the the exact right answer. I only wish I’d scrolled down to see R Said’s even easier solution.