aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-09-04 16:15:24 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-09-04 16:15:24 +0200
commite45af7ad17c3f0ecaec1d761aa89cb4fd83afbc2 (patch)
tree6f4a97cd2a4374cf152408976fd547b3fcd41d1c /shell
parentbede215cf105377a1127532d2d710924cb58cc39 (diff)
downloadbusybox-w32-e45af7ad17c3f0ecaec1d761aa89cb4fd83afbc2.tar.gz
busybox-w32-e45af7ad17c3f0ecaec1d761aa89cb4fd83afbc2.tar.bz2
busybox-w32-e45af7ad17c3f0ecaec1d761aa89cb4fd83afbc2.zip
lineedit: remove SAVE_HISTORY bit, ->hist_file can be used as indicator
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c
index a9e2dd311..7a34f59ae 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -7820,7 +7820,7 @@ int hush_main(int argc, char **argv)
7820 */ 7820 */
7821 7821
7822#if ENABLE_FEATURE_EDITING 7822#if ENABLE_FEATURE_EDITING
7823 G.line_input_state = new_line_input_t(FOR_SHELL & ~SAVE_HISTORY); 7823 G.line_input_state = new_line_input_t(FOR_SHELL);
7824#endif 7824#endif
7825 7825
7826 /* Initialize some more globals to non-zero values */ 7826 /* Initialize some more globals to non-zero values */
@@ -8105,7 +8105,6 @@ int hush_main(int argc, char **argv)
8105 } 8105 }
8106 if (hp) { 8106 if (hp) {
8107 G.line_input_state->hist_file = hp; 8107 G.line_input_state->hist_file = hp;
8108 G.line_input_state->flags |= SAVE_HISTORY;
8109 //set_local_var(xasprintf("HISTFILE=%s", ...)); 8108 //set_local_var(xasprintf("HISTFILE=%s", ...));
8110 } 8109 }
8111# if ENABLE_FEATURE_SH_HISTFILESIZE 8110# if ENABLE_FEATURE_SH_HISTFILESIZE