From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20966 invoked from network); 23 Jun 2020 09:56:05 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 23 Jun 2020 09:56:05 -0000 Received: (qmail 21502 invoked by alias); 23 Jun 2020 09:55:56 -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: List-Unsubscribe: Sender: zsh-users@zsh.org X-Seq: 24944 Received: (qmail 26084 invoked by uid 1010); 23 Jun 2020 09:55:56 -0000 X-Qmail-Scanner-Diagnostics: from mail-il1-f193.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25850. spamassassin: 3.4.4. Clear:RC:0(209.85.166.193):SA:0(-2.0/5.0):. Processed in 1.52378 secs); 23 Jun 2020 09:55:56 -0000 X-Envelope-From: mikachu@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.193 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=PnK0ftggOrBO+5q6T2e7Mq5Qd8l4GRVMMDaFB4PuB10=; b=Ddv/++VYihgQkdVBXu+nmC/+Z5oI0asUhvAKNaeocRuX/DG9YdnCSSH69bzkr2LfwI oMI5jLXFB9c5Zb1GWcEkHJivKuUBXiKPCzj4KIWDg+LkG3CYGmVi4jPc+IRn7CjGivis nkmYIBvuxR7dM7Doow5ql24u6FBxpLcwwZUKeOPUGs6+mH4ZEgfrHiKF755P11zf+/E8 ol+dEOZBz8ZHR/+dgXTtk0g3ow7RVQQvpg1kEEgo22kc0lntfk9gT8q97u78s5XWP858 WYnPa5oV38Q1PVm1MWaM5tB4UetrNCwarp4s3Jp1Rpr7FBZWSLgY/OEqN0moVr/Daj8R rU3g== X-Gm-Message-State: AOAM531ZceMGHbR2ZlZhdH+3Vc+Un49OTmuOYlw1JnMCuKkuNA1JQm8s u3Ayt7q/W8GqL9oEwwAQVo2sDoQQofgi/1KcPRk= X-Google-Smtp-Source: ABdhPJznH67Iuiu/wvyB//E6zBjlQk4U4m5tCmcGabn2SC/Njgf8hoTM2FrpkMAk9RfOFrmltro8QgjDNr7WEwSreuQ= X-Received: by 2002:a05:6e02:12b3:: with SMTP id f19mr22972339ilr.13.1592906121397; Tue, 23 Jun 2020 02:55:21 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20200623083703.GA13538@pooh.prefix.duckdns.org> References: <20200623083703.GA13538@pooh.prefix.duckdns.org> From: Mikael Magnusson Date: Tue, 23 Jun 2020 11:55:20 +0200 Message-ID: Subject: Re: Alias call in function fails... To: Mikael Magnusson , Frank Gallacher , "zsh-users@zsh.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 6/23/20, Andreas Kusalananda K=C3=A4h=C3=A4ri wr= ote: > On Tue, Jun 23, 2020 at 01:23:55AM +0200, Mikael Magnusson wrote: >> Aliases are expanded on parse time, which means aliases defined in a >> file won't be usable in that same file. (Because it is parsed in its >> entirety before any of the code is actually run). > > If the alias is defined before the definition of the function, it ought t= o > work. As I already explained, it will not. --=20 Mikael Magnusson