Fix sh(1) looping endlessly on input errors.
This commit is contained in:
parent
8b0911c672
commit
735dffd029
1 changed files with 1 additions and 1 deletions
2
sh/sh.c
2
sh/sh.c
|
@ -2042,7 +2042,7 @@ static int run(FILE* fp,
|
||||||
read_command_non_interactive(&sh_read_command, fp);
|
read_command_non_interactive(&sh_read_command, fp);
|
||||||
|
|
||||||
if ( sh_read_command.abort_condition )
|
if ( sh_read_command.abort_condition )
|
||||||
continue;
|
break;
|
||||||
|
|
||||||
if ( sh_read_command.eof_condition )
|
if ( sh_read_command.eof_condition )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue