From 735dffd029a7de16eb6dffbd2ff0ab222bac98e8 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 22 Jun 2024 17:23:06 +0200 Subject: [PATCH] Fix sh(1) looping endlessly on input errors. --- sh/sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/sh.c b/sh/sh.c index c257445f..203b06c7 100644 --- a/sh/sh.c +++ b/sh/sh.c @@ -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 ) {