Remove read history

This was undocumented, not all that useful and potentially unwanted.

In particular it means that things like

   mysql -p(read)

will still keep the password in history.

Also it allows us to simply implement asking for the history deletion
term.

See #5791.
This commit is contained in:
Fabian Homborg 2019-05-29 12:05:33 +02:00
parent fc99d6c7af
commit 51fcb79d96

View File

@ -202,10 +202,8 @@ static int read_interactive(parser_t &parser, wcstring &buff, int nchars, bool s
const wchar_t *commandline) {
int exit_res = STATUS_CMD_OK;
const auto &vars = parser.vars();
wcstring read_history_ID = history_session_id(vars);
if (!read_history_ID.empty()) read_history_ID += L"_read";
reader_push(parser, read_history_ID);
// Don't keep history
reader_push(parser, L"");
reader_set_left_prompt(prompt);
reader_set_right_prompt(right_prompt);