Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Can zsh `else` reserved keyword command be aliased and the lexem itself be repurposed as `fi` keyword command?

On 29/12/17 11:49 AM, Bart Schaefer wrote:
On Fri, Dec 29, 2017 at 11:29 AM, mathieu stumpf guntz
<psychoslave@xxxxxxxxxxxxxxxxx> 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
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

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?

Messages sorted by: Reverse Date, Date, Thread, Author