From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22713 invoked by alias); 16 Aug 2015 06:44:48 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20411 Received: (qmail 13935 invoked from network); 16 Aug 2015 06:44:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 Subject: Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why To: zsh-users@zsh.org References: <31314775.908080.1439706725493.JavaMail.yahoo@mail.yahoo.com> Cc: da_audiophile@yahoo.com From: Eric Cook Message-ID: <55D03155.6010606@gmx.com> Date: Sun, 16 Aug 2015 02:44:37 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <31314775.908080.1439706725493.JavaMail.yahoo@mail.yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:xbvxKRlE912S3wMd1S4j3dRyXcSJpuRoOgqJVAaNjgTswfs9pTK STf+v6DsT/V4FFYspiVGdiw7G90u9ryMO478GklTlWqfHvhXltboDxQ1qEjaa82f05WirfF 7z9RGdU+dlujFGuxOmxV0gZoi2/RA3c+M/WphzEpbUiV8m12y/bz6wTA2wJORZk6IPbmCs/ LpSRXtHmnmiOWamQCajsg== X-UI-Out-Filterresults: notjunk:1;V01:K0:aUAlvt3OHiM=:KzHGuRbdebIazlYOKuAjtv cGFEZ4H+LZ1sXAz4uP4+9v4G9QWUDQ/reoi5mJv1D7YmEDugcCul1BB8d0nZCRbTYwTx5B35E wyrWOuUSoGENCEinrXKvTIpi0tcRv4mB1hWjTi5Xizf2ZzGoOjrsmVdEyHTLSiftscHa8drLi dZU9rlL2JUwV/opHu9z+mKAYLk6WdsH2u75+GYk8iJANtRmAJJGo77ENlHF/4AxKT52D4Dwi/ RexdqJe7aRE+6oNEymmAbeB5p6U3hCPBQJ5D7HzDnjIL2T4u/d3+ojCdlml25u32b6GrWLaaE OPsTCQEpTSnDMzFQhU8Sx/+TaXOU1cLESKb552E/c1PvCB4qq3mdw3HpG6ecXUvslt6m3Bh+C BJyWSpm8lNeskP+b1VjMRqcI3wzp3rEps9lEjikadnA7DPe5+w27l6V256eO76DuoIi0xqZbN sjdnXtndI4doyvkIwCd1NotsVpa88AAWZapr9r8GW4eE6qp+QMGY/dvqbRoVG8gpZ3+ve6dbC QguimsXD0NTzFgEPGOMOuBC6JfDQSK7BT6dvUPHhaIj0ITofTpYEOINFfeN2DJpb7bjTraKUm RnP1tf38UagZCPmZgxflrknbqe2QVLxpU89dRrWOQFhZ+jRASA131qwNaagjXMpYTHI3sSp/0 s6azQmQ3I4Hf6cVmySk3j+DXOnn9dxIHy5sZyKSKaC0D1XWCKIMk/JqFVYPKc1IfvQA1AxXKs cEpTbVaEc/l29icnBXHHc46OB9u146pkji9KRg== 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