aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-11-30 20:00:34 +0000
committerBruce Momjian <bruce@momjian.us>2004-11-30 20:00:34 +0000
commita6c1377085c2d781918a4ea186cca6f3ccfbcc3f (patch)
treecfe80619a7da01c1c7dc28640011f1d7a49d0aeb /src/bin/psql/command.c
parentf02a21b19b2ca69f18e456fa005b74eab5d55b5d (diff)
downloadpostgresql-a6c1377085c2d781918a4ea186cca6f3ccfbcc3f.tar.gz
postgresql-a6c1377085c2d781918a4ea186cca6f3ccfbcc3f.zip
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.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r--src/bin/psql/command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 9ce7318c97c..c6ad507ca83 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.136 2004/11/30 19:01:28 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.137 2004/11/30 20:00:34 momjian Exp $
*/
#include "postgres_fe.h"
#include "command.h"
@@ -648,6 +648,8 @@ exec_command(const char *cmd,
if (success && !quiet && fname)
printf(gettext("Wrote history to file \"%s\".\n"), fname);
+ if (!fname)
+ putchar('\n');
free(fname);
}