diff options
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index a66093abb3a..39b5777bcb2 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -1088,20 +1088,8 @@ exec_command(const char *cmd, char *fname = psql_scan_slash_option(scan_state, OT_NORMAL, NULL, true); -#if defined(WIN32) && !defined(__CYGWIN__) - - /* - * XXX This does not work for all terminal environments or for output - * containing non-ASCII characters; see comments in simple_prompt(). - */ -#define DEVTTY "con" -#else -#define DEVTTY "/dev/tty" -#endif - expand_tilde(&fname); - /* This scrolls off the screen when using /dev/tty */ - success = saveHistory(fname ? fname : DEVTTY, -1, false, false); + success = printHistory(fname, pset.popt.topt.pager); if (success && !pset.quiet && fname) printf(_("Wrote history to file \"%s\".\n"), fname); if (!fname) |