summaryrefslogtreecommitdiff
path: root/bashhist.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2008-11-18 13:15:12 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:59 +0000
commitf1be666c7d78939ad775078d290bec2758fa29a2 (patch)
tree4f4b8ed6eb250653e0bb44685eb5ffa9d3805e91 /bashhist.c
parent0628567a28f3510f506ae46cb9b24b73a6d2dc5d (diff)
downloadbash-f1be666c7d78939ad775078d290bec2758fa29a2.tar.gz
Imported from ../bash-3.2.48.tar.gz.
Diffstat (limited to 'bashhist.c')
-rw-r--r--bashhist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bashhist.c b/bashhist.c
index 6468a538..3b854160 100644
--- a/bashhist.c
+++ b/bashhist.c
@@ -80,6 +80,7 @@ static struct ignorevar histignore =
list. This is different than the user-controlled behaviour; this
becomes zero when we read lines from a file, for example. */
int remember_on_history = 1;
+int enable_history_list = 1; /* value for `set -o history' */
/* The number of lines that Bash has added to this history session. The
difference between the number of the top element in the history list
@@ -234,7 +235,7 @@ bash_history_reinit (interact)
history_expansion = interact != 0;
history_expansion_inhibited = 1;
#endif
- remember_on_history = interact != 0;
+ remember_on_history = enable_history_list = interact != 0;
history_inhibit_expansion_function = bash_history_inhibit_expansion;
}