Le 29/12/2017 à 20:15, Bart Schaefer a écrit :
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".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?
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. ;)