]> granicus.if.org Git - postgresql/commitdiff
Add \n to end of output for psql \s with no history file name.
authorBruce Momjian <bruce@momjian.us>
Tue, 30 Nov 2004 20:00:34 +0000 (20:00 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 30 Nov 2004 20:00:34 +0000 (20:00 +0000)
This prevents the next psql prompt from showing up on the end of the
last history line.

src/bin/psql/command.c

index 9ce7318c97c8f98e9ffe57803bfb353b022e4127..c6ad507ca83567dc42b15e03109eb39d7026d2c1 100644 (file)
@@ -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);
        }