Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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/… –  Fischer Sep 24 '13 at 12:29

1 Answer 1

up vote 6 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 –  Fischer Sep 24 '13 at 12:31
    
@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 –  Fischer Sep 24 '13 at 16:59
    
@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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.