summaryrefslogtreecommitdiff
path: root/bashhist.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-03 22:43:25 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-03 22:43:25 -0500
commitdc8fbaf9a166e0d0aefbde426ad66bfcdeabb931 (patch)
treebf497181a5a2af5b6775e3376916c64b060f7592 /bashhist.c
parent5e4a95c7941a9e29b0bacb752c4e4a50c1385bbd (diff)
downloadbash-dc8fbaf9a166e0d0aefbde426ad66bfcdeabb931.tar.gz
commit bash-20051222 snapshot
Diffstat (limited to 'bashhist.c')
-rw-r--r--bashhist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bashhist.c b/bashhist.c
index 5d2b8174..6468a538 100644
--- a/bashhist.c
+++ b/bashhist.c
@@ -270,6 +270,9 @@ load_history ()
Note that the history file is automatically truncated to the
size of HISTSIZE if the user does not explicitly set the size
differently. */
+ set_if_not ("HISTSIZE", "500");
+ sv_histsize ("HISTSIZE");
+
set_if_not ("HISTFILESIZE", get_string_value ("HISTSIZE"));
sv_histsize ("HISTFILESIZE");