Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Errors with my youtube-dl function in ~/.zshrc but I am unsure why
- X-seq: zsh-users 20410
- From: John <da_audiophile@xxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Errors with my youtube-dl function in ~/.zshrc but I am unsure why
- Date: Sun, 16 Aug 2015 06:32:05 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1439706726; bh=LIOgU7csWUeuOGm5ty8x42MdNanWD1T1vymc+UYkPgg=; h=Date:From:Reply-To:To:Subject:From:Subject; b=k7HKvQpf6xt0K6JcM5bQhdUJIgJAQ548eIRKvcWXx+cs8J/s00rGcU6Zo8Tr/Ojannky7t9AzAMLzzd4i7tGsxTrkAioSnZLLgcnnPpwXUVvPinTdCo+jFyrojg2zcvswDrDU8JamuD50SXnY8dzr8qeJaVTS5oOrcrzzYPPepK1X8E9rzjs/+2WQoIKmok75tYlUN5UBr2LRcDdelVeVMwyuEiw0Go2Xw0LEFGLPrW3g1YmO2f/zV9QNJ2GETW76YMPCcnLw3/or291eCpnXL+FkJ4OUKU8enL0sbdd6uxb/ssFp/ArQ8Rfeu1ZKwapQF7h/Gwe2PPc3pYH3u3lPw==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: John <da_audiophile@xxxxxxxxx>
Why does zsh complain about no matches when I invoke my yt function and how can I correct the code? Thanks!
>From ~/.zshrc:
yt() { [[ -z "$1" ]] || noglob youtube-dl -q "$1" &; }
Output of command:
% yt https://www.youtube.com/watch?v=OC1JiAUr3ZU :(
zsh: no matches found: https://www.youtube.com/watch?v=OC1JiAUr3ZU
Please note that I am not subscribed to the ML so please cc me in the reply.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author