From: Bruce Momjian Date: Tue, 30 Nov 2004 20:00:34 +0000 (+0000) Subject: Add \n to end of output for psql \s with no history file name. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=74be35d33c37e85446145e89a2632b017e7af3dc;p=users%2Fbernd%2Fpostgres.git 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. --- diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index ff5b08dc06..dc7e37567a 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -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); }