Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I downloaded youtube-dl using pip on CrunchBang (a Debian Wheezy distro). When I run

youtube-dl {video URL}

I get

zsh: no matches found: {video URL}

I guess it has something to do with zsh, because I found some users on Arch forums complaining about it. When I switched to bash it worked.

share|improve this question
    
@Ramhound well switching to bash is not a big deal, but why switching to bash every time you want to download a video? besides i was working in virualenv switched to bash to try it and now my virtualenvwrapper is messed up, i need to uninstall it for it to work again stackoverflow.com/questions/11507186/… – Lynob Sep 24 '13 at 12:29
up vote 14 down vote accepted

Try quoting the URL, e.g.

youtube-dl '{video URL}'

in your notation, to avoid possible interpretation of special characters in the string.

share|improve this answer
    
why no one mention that? it works, i will accept it in 6 minutes, the system doesn't let me accept it right away – Lynob Sep 24 '13 at 12:31
1  
@Fischer By the way: my Zsh (on OS X in iTerm2 with oh-my-zsh) automatically escapes shell-specific characters like & and !, so there might be an option to configure that. – slhck Sep 24 '13 at 12:49
    
@slhck i just tried it on xterm doesn't work, i don't have xterm2, i'm using oh-my-zsh too.. yes i guess i have to configure my zsh for that, i guess bash does it by default because i haven't configured it, still using the default configuration – Lynob Sep 24 '13 at 16:59
1  
@Fischer: You'll need to load the url-quote-magic funtion to get special shellcharacters to be quotes automatically in URLs: autoload -Uz url-quote-magic; zle -N self-insert url-quote-magic – mpy Oct 3 '13 at 9:48
    
Quotes. I feel like an idiot.. – myol Jun 22 at 18:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .