From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13881 invoked by alias); 16 Aug 2015 16:37:29 -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: 20414 Received: (qmail 20949 invoked from network); 16 Aug 2015 16:37:28 -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 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=IJQf+1y/PEL/XJOoErIvL5uQPfkY/+G8IKBWcN/wlHs=; b=LnZo75+rRqHrRzMZq63kohpVNDrO8dPcpMX2quI77idQJoh5fBsn713yCiT/3EyZxl ar6iLgyNPYeSpDDVM8AXygHpDL/leRbA6JXjKysQRVXrvVqVBejqO4MxfNDpeDj6yWSt nkkJ2l9QsRSV3uJ5TFPZZyof1XF63q0XZPKliyzbnj0htlrCejqVq9gmXdBrU/tyHiu+ +AyiwmgH/C7Y1IIiKEAES6Vyhb8Aa+LZ2C8Pa4gaCANkWWBr0aW04RkYbw1Oc07DlRW/ TKPeA3GFY3ZH87RlEcrfKVjFSUb+RY4CIFGNrSZ3efuglYA24i+kpyzrRYMglWJdYgIK 2SPQ== X-Gm-Message-State: ALoCoQkXXraWMtiKXOSPnBWKTGU7gu3tMIVkiNEcktoEqqI5TMC0g5gT51K40xu+V0Bsf056amNj X-Received: by 10.202.48.200 with SMTP id w191mr19125898oiw.13.1439743046401; Sun, 16 Aug 2015 09:37:26 -0700 (PDT) From: Bart Schaefer Message-Id: <150816093722.ZM12415@torch.brasslantern.com> Date: Sun, 16 Aug 2015 09:37:22 -0700 In-Reply-To: <1212377169.5264610.1439708089255.JavaMail.yahoo@mail.yahoo.com> Comments: In reply to John "Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why" (Aug 16, 6:54am) References: <55D03155.6010606@gmx.com> <1212377169.5264610.1439708089255.JavaMail.yahoo@mail.yahoo.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "zsh-users@zsh.org" , John Subject: Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii } 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' Note you want the alias declaration after the function definition. There's no way to include it inside the function itself because the glob is attempted before the function is called.