Skip to content

Commit e6a0e4e

Browse files
committed
Fix EOF/control-D display in psql.
1 parent dc16399 commit e6a0e4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/psql/mainloop.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ MainLoop(PsqlSettings *pset, FILE *source)
136136
if (line == NULL || (!pset->cur_cmd_interactive && *line == '\0'))
137137
{
138138
if (GetVariableBool(pset->vars, "echo") && !GetVariableBool(pset->vars, "quiet"))
139-
puts("EOF");
139+
puts("EOF\n");
140+
else
141+
puts(""); /* put out newline */
140142
eof = true;
141143
continue;
142144
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy