Fix sh(1) looping endlessly on input errors.

This commit is contained in:
Jonas 'Sortie' Termansen 2024-06-22 17:23:06 +02:00
parent 8b0911c672
commit 735dffd029
1 changed files with 1 additions and 1 deletions

View File

@ -2042,7 +2042,7 @@ static int run(FILE* fp,
read_command_non_interactive(&sh_read_command, fp);
if ( sh_read_command.abort_condition )
continue;
break;
if ( sh_read_command.eof_condition )
{