From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27113 invoked by alias); 29 Dec 2017 19:29:48 -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: 23024 Received: (qmail 22580 invoked by uid 1010); 29 Dec 2017 19:29:48 -0000 X-Qmail-Scanner-Diagnostics: from mail.epopia.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(137.74.101.162):SA:0(-1.9/5.0):. Processed in 1.381346 secs); 29 Dec 2017 19:29:48 -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,HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: psychoslave@culture-libre.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Subject: Re: Can zsh `else` reserved keyword command be aliased and the lexem itself be repurposed as `fi` keyword command? To: Bart Schaefer , Zsh Users References: <71ef7896-39f8-66fe-f8f8-c7c81b11e2ce@culture-libre.org> From: mathieu stumpf guntz Message-ID: <918acbfa-b637-1d13-816b-c6edee0afa5c@culture-libre.org> Date: Fri, 29 Dec 2017 20:29:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------140A14A41A613545CEE20A8A" Content-Language: en-GB --------------140A14A41A613545CEE20A8A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Le 29/12/2017 à 20:15, Bart Schaefer a écrit : > Shell language is a programming language. Do you know any other > programming languages? Do you find it astonishing that you can't > execute an incomplete C or Java program? The question is not to know if the interpreter can execute an incomplete program. The point is to send a signal to the interpreter which order to interrupt usual parsing and try to interpret what was already buffered right now. Of course it can fails. But a program interpretation can fail even when "it is complete". On a side humoristic note, one might perfectly imagine an interpreter that try to infer realistic expectation, or more simply associate a valid program to any random input. ;) --------------140A14A41A613545CEE20A8A--