]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
more - Bug Resolve - new line separated command execution
authorritikrajdev <ritikrajdev761@gmail.com>
Mon, 13 Sep 2021 22:57:14 +0000 (04:27 +0530)
committerritikrajdev <ritikrajdev761@gmail.com>
Mon, 13 Sep 2021 22:57:14 +0000 (04:27 +0530)
text-utils/more.c

index 6c538f7246704a59c1c2a70216ddc5d39f2e24a3..72953fd8fda0f29f8202ec88c408a6bd6f1176cd 100644 (file)
@@ -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, "%!\\"))