From: ritikrajdev Date: Mon, 13 Sep 2021 22:57:14 +0000 (+0530) Subject: more - Bug Resolve - new line separated command execution X-Git-Tag: v2.38-rc1~259^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5e0eac42c55b007766221e1971fceda3a64bb08;p=thirdparty%2Futil-linux.git more - Bug Resolve - new line separated command execution --- diff --git a/text-utils/more.c b/text-utils/more.c index 6c538f7246..72953fd8fd 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -1285,7 +1285,7 @@ static void run_shell(struct more_control *ctl, char *filename) putchar('!'); fflush(NULL); if (ctl->previous_command.key == more_kc_run_shell && ctl->shell_line) - fputs(ctl->shell_line, stdout); + fputs(ctl->shell_line, stderr); else { ttyin(ctl, cmdbuf, sizeof(cmdbuf) - 2, '!'); if (strpbrk(cmdbuf, "%!\\"))