Commit d6ce220f authored by Bruce Momjian's avatar Bruce Momjian

psql fix.

parent e2f32054
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.186 1999/07/19 16:49:17 momjian Exp $ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.187 1999/07/19 21:06:19 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -2876,9 +2876,11 @@ main(int argc, char **argv) ...@@ -2876,9 +2876,11 @@ main(int argc, char **argv)
pqsignal(SIGINT, handle_sigint); /* control-C => cancel */ pqsignal(SIGINT, handle_sigint); /* control-C => cancel */
#ifdef USE_READLINE #ifdef USE_READLINE
settings.useReadline = 1; settings.useReadline = 1;
/* Set the application name, used for parsing .inputrc */ {
char *progname = strrchr(argv[0], SEP_CHAR); /* Set the application name, used for parsing .inputrc */
rl_readline_name = (progname ? progname+1 : argv[0]); char *progname = strrchr(argv[0], SEP_CHAR);
rl_readline_name = (progname ? progname+1 : argv[0]);
}
#endif #endif
} }
#ifdef PSQL_ALWAYS_GET_PASSWORDS #ifdef PSQL_ALWAYS_GET_PASSWORDS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment