Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita6c1377

Browse files
committed
Add \n to end of output for psql \s with no history file name.
This prevents the next psql prompt from showing up on the end of thelast history line.
1 parentf02a21b commita6c1377

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/bin/psql/command.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.136 2004/11/3019:01:28 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.137 2004/11/3020:00:34 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"command.h"
@@ -648,6 +648,8 @@ exec_command(const char *cmd,
648648

649649
if (success&& !quiet&&fname)
650650
printf(gettext("Wrote history to file \"%s\".\n"),fname);
651+
if (!fname)
652+
putchar('\n');
651653
free(fname);
652654
}
653655

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp