From e6a0e4ed618c198d8d15b29e91f16dd584e68ce4 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 4 Nov 1999 23:26:02 +0000 Subject: [PATCH] Fix EOF/control-D display in psql. --- src/bin/psql/mainloop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c index 560488fff4..745bd6e498 100644 --- a/src/bin/psql/mainloop.c +++ b/src/bin/psql/mainloop.c @@ -136,7 +136,9 @@ MainLoop(PsqlSettings *pset, FILE *source) if (line == NULL || (!pset->cur_cmd_interactive && *line == '\0')) { if (GetVariableBool(pset->vars, "echo") && !GetVariableBool(pset->vars, "quiet")) - puts("EOF"); + puts("EOF\n"); + else + puts(""); /* put out newline */ eof = true; continue; } -- 2.40.0