From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20297 invoked by alias); 16 Aug 2015 16:49:30 -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: 20416 Received: (qmail 23706 invoked from network); 16 Aug 2015 16:49:30 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1439743403; bh=/k6gXopClqAyqDXbTJEV0FmLRmnKR04kIuIeynvIUTc=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=ForSVN2/EL6PBC/d00ei2EyDWtur6mT+7DUwBZpPDGiu7qxTm23lchJLW+KY9FwVqhR74TTdBDDST2S568MFjXMBOLmmSFFnCD78k/VlfXmYaIZKxBNsXLB7KQXp90aP1+WQg3Wkgb2cT6n1UiDqvMdCHTyEZE1T+4GRIjGknQ/YvvTR4UY/e4W+DcO4OGU7m0bn1Usf3J2cqmxHY06As03M4yfYj8OZxqU7V4q37MZPH/+lSuz+vLRuvH4mbgurLLvEt7mwv5sQDAIMR0FfjuZNsOCW0bQZ4rfBJQ9vJjRWDAI2hFh3rySlZPd9nR+FrZeQoYLt+R3x/FYuUWtUCw== X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 836803.98791.bm@omp1038.mail.bf1.yahoo.com X-YMail-OSG: HpjOUjoVM1mUITobLzyCcP.8gCUCgsM3t3PrUDBEyadmZo2R8EHJVB0gLQF9xf5 gdOEbjZC3ytxCZsmGP4eYhLYnA_bR7Q8vYfsN9RLQ44aQVS4Ir678qTRUlZKbLgIhp.Fx_d_jGdh WlPVhr8zXbWQQ6RfOkDMyA1RMfPgsIi2lCZ9B6..ACMJCeee63r_du8TOISM_zfPPmhQ2hQ8KyYI pCV.QT1TmClheZkpIWj5uQhQBNBalC4mClVkDGl62gh0U_VrLIqRz1VNFkuBN6Vh0io3KfrnbOYR 2si2BVJSytm48tRHPK4vmVLh0EmUCDVPytIRVYMOz3yWH8Xbv44SVIBwP3TH7dRtYF21Z0lOgNtN Kb7Lf68i6oHeV5siPG26mSJi09D_6O10oaFeyNnJWpc0AhWso_gHSX.E1K_Ezt8_qn1htynpRUWZ 5nGcXhb1UKEOcXlQAtLC5ydrP.GV0T9XFJ4F0DW6pl8k7Fp4k8mtnSviu90m3ryxBuZs_a_4neiG xErQb196_mwBs Date: Sun, 16 Aug 2015 16:43:23 +0000 (UTC) From: John Reply-To: John To: Bart Schaefer , "zsh-users@zsh.org" Message-ID: <1873661846.5363426.1439743403133.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <150816093722.ZM12415@torch.brasslantern.com> References: <150816093722.ZM12415@torch.brasslantern.com> Subject: Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ----- Original Message ----- > From: Bart Schaefer > To: "zsh-users@zsh.org" ; John > Cc: > Sent: Sunday, August 16, 2015 12:37 PM > Subject: Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why > > } 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? > > Do you mean it previously worked WITHOUT prefixing by noglob? > > Has the version of zsh you are using changed during that time? > > > The easiest thing to do is this: > > yt() { [[ -z "$1" ]] || noglob youtube-dl -q "$1" > &; } > alias yt='noglob yt' Excellent, thank you. Yes, it did work as the function only some months ago (I rarely use it but found that it wasn't working now). Zsh on my distro has updated since then (now running 5.08). Minor note, I removed the noglob in the function so the relevant lines read: yt() { [[ -z "$1" ]] || youtube-dl -q "$1" &; } alias yt='noglob yt'