projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fed60cf
)
Add \n to end of output for psql \s with no history file name.
author
Bruce Momjian
<
[email protected]
>
Tue, 30 Nov 2004 20:00:34 +0000
(20:00 +0000)
committer
Bruce Momjian
<
[email protected]
>
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
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/command.c
b/src/bin/psql/command.c
index ff5b08dc064ce1607a847dd7a803d962904d51fa..dc7e37567aea06cd3c7da09f40d4642adff4f941 100644
(file)
--- 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);
}