Skip to contentSkip to conversation

pull: more - Bug Resolve - new line separated command re execution

PATCH New ritikrajdev 1 participant 2 messages Sep 14, 2021 Util-Linux package

lore
Share & tools
lore
#0 lore raw

cover pull: more - Bug Resolve - new line separated command re execution

The following changes since commit 78001b7af36f685265e21feaf384a4be12118c64:

Merge branch 'master' of https://github.com/yugart/util-linux (2021-09-07 12:30:15 +0200)

are available in the Git repository at:

git://github.com/ritikrajdev/util-linux.git more-shell-execution

for you to fetch changes up to e5e0eac42c55b007766221e1971fceda3a64bb08:

more - Bug Resolve - new line separated command execution (2021-09-14 04:27:14 +0530)

----------------------------------------------------------------
ritikrajdev (1):
more - Bug Resolve - new line separated command execution

 text-utils/more.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.33.0
#1 lore raw

PATCH 1/1 more - Bug Resolve - new line separated command execution

---
 text-utils/more.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
text-utils/more.c +1 -1
index 6c538f724..72953fd8f 100644
@@ -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, "%!\\"))
Signature · 1 line
2.33.0