From adecb4f73edff447ae84ac9dd11cf241bbb9fdd4 Mon Sep 17 00:00:00 2001 From: Jacob Lin Date: Thu, 7 Mar 2024 01:27:18 +0800 Subject: [PATCH] Fix command prompt showing when using file input Commit dd6a761 removes `set_echo(0)` when `infd` is not the standard input, which will show command prompt while executing command from input files. Adding it back fixes the issue. --- console.c | 1 + 1 file changed, 1 insertion(+) diff --git a/console.c b/console.c index dda251fd5..9c3dfbae0 100644 --- a/console.c +++ b/console.c @@ -586,6 +586,7 @@ static int cmd_select(int nfds, interpret_cmd(cmdline); fflush(stdout); } else { + set_echo(0); char *cmdline = readline(); if (cmdline) interpret_cmd(cmdline);