File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.184 1999/07/19 02:27:10 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.185 1999/07/19 16:46:53 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -2876,6 +2876,13 @@ main(int argc, char **argv)
2876
2876
pqsignal (SIGINT , handle_sigint ); /* control-C => cancel */
2877
2877
#ifdef USE_READLINE
2878
2878
settings .useReadline = 1 ;
2879
+ {
2880
+ /*
2881
+ * Set the application name, used for parsing .inputrc -- dz
2882
+ */
2883
+ char * progname = strrchr (argv [0 ], SEP_CHAR );
2884
+ rl_readline_name = (progname ? progname + 1 : argv [0 ]);
2885
+ }
2879
2886
#endif
2880
2887
}
2881
2888
#ifdef PSQL_ALWAYS_GET_PASSWORDS
You can’t perform that action at this time.
0 commit comments