jpuritz / dDocent

a bash pipeline for RAD sequencing
ddocent.com
MIT License
52 stars 41 forks source link

URLs with '?' need to be quoted/escaped with zsh+curl #22

Closed cfriedline closed 8 years ago

cfriedline commented 8 years ago

Hi Jon - ran into this today, thought I'd share. Without quoting or escaping, you see messages like

curl -L -o rainbow.x.tar.gz https://sourceforge.net/projects/bio-rainbow/files/latest/download?source=files
zsh: no matches found: https://sourceforge.net/projects/bio-rainbow/files/latest/download?source=files

By quoting, they download just fine:

$ curl -L -o rainbow.x.tar.gz "https://sourceforge.net/projects/bio-rainbow/files/latest/download?source=files"
######################################################################## 100.0%

Also, if it matters:

$ zsh --version
zsh 5.2 (x86_64-unknown-linux-gnu)

Cheers!

jpuritz commented 8 years ago

Thanks Chris. This should help with cross platform/shell compatibility.