It appears an attempt was made to limit history entries to 5000
by setting history_size to 5000. There are 2 issues with this:
first, history_size is something that is retieved, not something
that is set; and secondly, to correctly set history_max_size we
need to call stifle_history(5000).
Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
history_file = strdup(fbuf);
if(!access(history_file, W_OK | R_OK )) {
- history_length = 5000;
+ stifle_history(5000);
read_history(history_file);
}
return 1;