From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4321 invoked by alias); 29 Dec 2017 08:47:55 -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: X-Seq: 23018 Received: (qmail 22548 invoked by uid 1010); 29 Dec 2017 08:47:55 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f174.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.174):SA:0(-1.9/5.0):. Processed in 1.294225 secs); 29 Dec 2017 08:47:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=U8U9OP5vG7KqYprPDrUM45CG29WEbN/zZDIjCMR6uz4=; b=kLSUtxYXXrMafz+1D7VbLPSuJVXINJ42OFwSIAjqxSq6IqXITqPSwKwhj8pFPd9Y8Q PKUvl1NHXt7iCPZA2ZIwYwZ7X1H8Ddd2vQgMfw8FdAE3vlixvLx1PvvTbiT5l6as8ZDt n6I6aI9Chgl9Zhp1WjqELs1F5zEPtW2ZSH55NhUelYrjPbyk/8PA27nTgYFemopva9+Y slORVZQBX1dD4Aqrp0hzsXcSmiO4NV9TqwMwQvQsStI2gI/Bhe0qrWqSrZKY9qd7kNd0 dwasa5RgBe4ofeTrqA8n6s4eLzuIZjvIVvbctCeN2O+XuCt8Cvjsx1BhNveXMH/SzPBv nnyw== 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=U8U9OP5vG7KqYprPDrUM45CG29WEbN/zZDIjCMR6uz4=; b=kwB5elgHsvFo8h+cMJWmaUAUuG4jl7r8sT0yFvHT452I3zHcx2PlwhDsPrUCRGe4E/ FHZUsvQWhuAme1L0s/hJpfsC0xCQ7bjpzMel2ln6/6P0vSXN+zLfXOYPbCnFxUagOTfG WaRNQ/JDGnI0fW6AM0lGtPlDFA7McD7LpGYoKhzzy3fd9rjYKfSo/R9bMalg6ZsBEjYa 4cvsxIFueirP8NdzqbI/UJJdFzXjICvWgi9fgEOZEDfTInHcfeo2EM4uilUh3JBdEadQ uPF3WzniR6PngcjboAA8CvDSSQ72t24mslsBQxJT83gRjEqk6xkMiMsxAKweXk7cR800 ZEww== X-Gm-Message-State: AKGB3mK8+zIT8X2QwpPlX/yN5jOiIbYbFSNuj8WgqcoB+NjnOz4LIn3r pc/5PfnLOFmvJhbvdTiZUDnMmsEFpeNy9RPdDoX0qw6x X-Google-Smtp-Source: ACJfBouMRyqJZKvVn3K6D9ZERJT1/dEJm7buXS0Oun9/4TRsB0Wc7F3CDPLHsjAcIUk6fiV/H+0/7z7C9VGDBeDwj30= X-Received: by 10.200.26.171 with SMTP id x40mr42880450qtj.43.1514537270775; Fri, 29 Dec 2017 00:47:50 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Bart Schaefer Date: Fri, 29 Dec 2017 00:47:50 -0800 Message-ID: Subject: Re: Can zsh `else` reserved keyword command be aliased and the lexem itself be repurposed as `fi` keyword command? To: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 28, 2017 at 7:19 AM, mathieu stumpf guntz wrote: > > =E2=96=B6 export LANC=3DC enable -r else; if true; then else fi; dis= able -r else You're missing a semicolon after the "C". That's the reason you get > =3D> export: not valid in this context: -r > Is there a way to force execution at some point on a single line, as if > there was performed on two lines? If I understand your question, the answer is "no": you can't execute the front part of an "if" until the "fi" has been read. See my previous email "fully parsed before executed." (Well, you could switch to csh, which does execute every line as it goes along, even in complex structures. But no, not in zsh.)