Until now, any erroneous command typed within an input program at an
interactive command prompt implicitly "broke out" of the input program,
causing confusing behavior. This commit fixes the problem: commands
following an erroneous command within INPUT PROGRAM continue to be part of
the input program.
Bug #33419.
Reported by John Darrington.
emit_END_CASE (ds, inp);
saw_END_CASE = true;
}
- else if (cmd_result_is_failure (result) && result != CMD_FAILURE)
+ else if (cmd_result_is_failure (result)
+ && result != CMD_FAILURE
+ && lex_get_error_mode (lexer) != LEX_ERROR_INTERACTIVE)
{
if (result == CMD_EOF)
msg (SE, _("Unexpected end-of-file within INPUT PROGRAM."));