]> granicus.if.org Git - postgresql/commitdiff
Fix EOF/control-D display in psql.
authorBruce Momjian <bruce@momjian.us>
Thu, 4 Nov 1999 23:26:02 +0000 (23:26 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 4 Nov 1999 23:26:02 +0000 (23:26 +0000)
src/bin/psql/mainloop.c

index 560488fff41fbcd1a9dc6bc25673a379c460c3dc..745bd6e49858a5066e74d3fd57950e9317c70d6d 100644 (file)
@@ -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;
                }