Skip to content

Commit a6c1377

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 the last history line.
1 parent f02a21b commit a6c1377

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/30 19:01:28 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.137 2004/11/30 20: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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy