Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why
- X-seq: zsh-users 20412
- From: John <da_audiophile@xxxxxxxxx>
- To: Eric Cook <llua@xxxxxxx>, "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why
- Date: Sun, 16 Aug 2015 06:54:49 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1439708095; bh=F/Sgsb1AtaPkSbD7Z0GAPrKhA8++xDqNBtDlUhigTNM=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=dHkeVQNa7dMRxgpnLE4zpAmHU+LL2OOdgEjuZwZHOOIrssmKIk7J/Gloa7rKpuY6Qg1FEMQsiRgxxak4/t+XHLLnZMBJUwvvItQZ0LvzyNrQSplpD7glf7mjQ9p1zJyPS/UxcQmqBUnu6llI7bgcv9yjQxjknAQWuf7jy3kcBOKl6jyzCdKJijSMbISwkVpSsECwWvsdvfqmMgVgbUdgwmpyNqGcK4cgfGCkbF+FoT2z2zapWL85IOl3/IFL7ZJLZez1WauAlOxNkbV6UZ7gJzWwyOzVZRHMdw1d315UIJ0jzQBGQnSZfe5RKdKx/dhSCvIK5cIO1k1pOkG75Y2Ckg==
- In-reply-to: <55D03155.6010606@gmx.com>
- 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
- References: <55D03155.6010606@gmx.com>
- Reply-to: John <da_audiophile@xxxxxxxxx>
----- Original Message -----
> From: Eric Cook <llua@xxxxxxx>
> To: zsh-users@xxxxxxx
> Cc: da_audiophile@xxxxxxxxx
> Sent: Sunday, August 16, 2015 2:44 AM
> Subject: Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why
>
> On 08/16/2015 02:32 AM, John wrote:
>> 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.
>>
> You have to call the function with noglob to prevent zsh from thinking ? is a
> pattern character.
>
> so:
> % noglob yt https://www.youtube.com/watch?v=OC1JiAUr3ZU
>
Thank you for the reply. In the past (month ago), this function worked as-is calling the command prefixed by noglob as you recommended. Is there any way I can roll it into the function?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author