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=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31267 invoked from network); 30 Jun 2020 04:03:52 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 30 Jun 2020 04:03:52 -0000 Received: (qmail 19176 invoked by alias); 30 Jun 2020 04:03:39 -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: 24963 Received: (qmail 20732 invoked by uid 1010); 30 Jun 2020 04:03:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f48.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25857. spamassassin: 3.4.4. Clear:RC:0(209.85.210.48):SA:0(-1.9/5.0):. Processed in 1.797891 secs); 30 Jun 2020 04:03:39 -0000 X-Envelope-From: schaefer@brasslantern.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.210.48 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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9aKOucd5vBpqnWnF2Fnqsee7jbjY47JA1/X3NTs/KeM=; b=RgRdtF/9pk20f1TdBZlG/K2J4RAzHLKeWzVDF7kzvNMgL0UoMaUYLI4AE9DRfHQX7e eZloxGoEDYjixQGCQl2CawIc7gE1lqm4I8hGMKzFpRdkrqLHRw4/3ffXlRIAajKwR3xl MsMh6bjvCkpf0jFbjLTmwb3HH5fcAJ5mn77IlIU1qcdSmg8kp1PrwxT475mG090cNJ3G yVbflUlRiDemftKvbjw0sdfVF8OmKrcXHuQrtPCVKlB5rKkSwn1nPkDmLBSDmcnEUtzN AUuOEXPYysMmEyvWzchezsxx5/miQf77wE3mQe/copw7+eIK5/z4l7CGTH47SARCgU9N SZsg== X-Gm-Message-State: AOAM533QOW2I0PMb6gyOYXNDGLKDlGw6Jvds+aTLKAjiYaus7ny+IJFE BFNYSJNNeQzEqbGAHJ7mvqaO8n+nrKwRVGwjPh1j4Vdf X-Google-Smtp-Source: ABdhPJyHKC9K3OlCZiZvpGbvs90kGB98vhguR/P/QYZ/ie9A0Nk4mazy2Da3p7UQKjQftajKUyHRojHSkyXpdG6nSU4= X-Received: by 2002:a9d:5d11:: with SMTP id b17mr17062090oti.260.1593489783939; Mon, 29 Jun 2020 21:03:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Mon, 29 Jun 2020 21:02:52 -0700 Message-ID: Subject: Re: Alias call in function fails... To: "zsh-users@zsh.org" Cc: Frank Gallacher Content-Type: text/plain; charset="UTF-8" On Mon, Jun 29, 2020 at 9:55 AM Bart Schaefer wrote: > > As Peter explained, initialization files, sourced files, > and scripts (that are not function bodies) are executed one > newline-separated command at a time (Peter said "line by line" but > that's not precisely correct **) Just realized I never completed my footnote. ** Csh notoriously executed even loops and conditionals one command at a time, and in the case of loops would rewind the input file seek pointer to the start of the loop and execute it again until the loop condition became false. I wrote some entertaining self-modifying csh scripts back in the day. Anyway that's one reason why aliases in csh behave differently.