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?



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. ;)

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