summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-08-14 18:06:51 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-08-14 18:06:51 +0300
commit1d15a28e52e41fae0847284089b2073ab33162a5 (patch)
tree3d2dbd3ebda6547c26642e597b5cafc56e7ed031 /client
parentc4feef50cfa4033e646636ed37e255d2b3593fbf (diff)
parenta20f6f9853e522ad388f5b968ce11af3c5d1fc10 (diff)
downloadmariadb-git-1d15a28e52e41fae0847284089b2073ab33162a5.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index d3d273c3a72..41b7d192fc0 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -1059,7 +1059,7 @@ extern "C" int write_history(const char *command);
extern "C" HIST_ENTRY *history_get(int num);
extern "C" int history_length;
static int not_in_history(const char *line);
-static void initialize_readline (char *name);
+static void initialize_readline ();
static void fix_history(String *final_command);
#endif
@@ -1240,7 +1240,7 @@ int main(int argc,char *argv[])
}
#ifdef HAVE_READLINE
- initialize_readline((char*) my_progname);
+ initialize_readline();
if (!status.batch && !quick && !opt_html && !opt_xml)
{
/* read-history from file, default ~/.mysql_history*/
@@ -2665,10 +2665,11 @@ static int fake_magic_space(const char *, int)
}
-static void initialize_readline (char *name)
+static void initialize_readline ()
{
/* Allow conditional parsing of the ~/.inputrc file. */
- rl_readline_name = name;
+ rl_readline_name= "mysql";
+ rl_terminal_name= getenv("TERM");
/* Tell the completer that we want a crack first. */
#if defined(USE_NEW_READLINE_INTERFACE)