From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17952 invoked by alias); 29 Dec 2017 20:57:58 -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: 23026 Received: (qmail 27812 invoked by uid 1010); 29 Dec 2017 20:57:58 -0000 X-Qmail-Scanner-Diagnostics: from mta01.eastlink.ca 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(24.224.136.30):SA:0(-2.6/5.0):. Processed in 2.164313 secs); 29 Dec 2017 20:57:58 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8; format=flowed X-Authority-Analysis: v=2.3 cv=OKgJIxSB c=1 sm=1 tr=0 a=RnRVsdTsRxS/hkU0yKjOWA==:117 a=RnRVsdTsRxS/hkU0yKjOWA==:17 a=IkcTkHD0fZMA:10 a=5_ZeSe8IAAAA:8 a=fG3cE3ZXgNPlXTMh1psA:9 a=QEXdDO2ut3YA:10 a=RId0FLJ0AhS3lVnT4aw-:22 X-EL-IP-NOAUTH: 24.207.101.9 Subject: Re: Can zsh `else` reserved keyword command be aliased and the lexem itself be repurposed as `fi` keyword command? To: zsh-users@zsh.org References: <71ef7896-39f8-66fe-f8f8-c7c81b11e2ce@culture-libre.org> <918acbfa-b637-1d13-816b-c6edee0afa5c@culture-libre.org> From: Ray Andrews Message-id: <81beaeae-6507-c961-b6fd-5831ba58e045@eastlink.ca> Date: Fri, 29 Dec 2017 12:27:51 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 In-reply-to: Content-language: en-CA On 29/12/17 11:49 AM, Bart Schaefer wrote: > On Fri, Dec 29, 2017 at 11:29 AM, mathieu stumpf guntz > wrote: >> 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 from the command line (as opposed to when reading a script > file) that *is* what happened. However, the result of "try to > interpret" was "oh, this isn't complete yet, I need to ask for the > rest". > As for me, the very idea that a reserved word could be aliased seems monstrous. In any information system there must be tokens who's meaning is absolute.  How you guys can begin to make it possible to parse such things is beyond me, it seems like black magic.  But I am curious, what does it mean to say that an interpreted program is incomplete?  I mean, unclosed quotes and such things are clearly incomplete, but other than that?