# HG changeset patch # User John W. Eaton # Date 1349246333 14400 # Node ID 7760d5eff9b2821a419a365059be58e7133707fc # Parent da6c37ed0b4219a8d78ac3216c94ef1158db0640 elimnate call to bind_internal_variable when handling -H option * octave.cc (octave_process_command_line): Call Fsaving_history directly here for -H option. (octave_initialize_interpreter): Don't call bind_internal_variable to set saving_history variable here. diff -r da6c37ed0b42 -r 7760d5eff9b2 libinterp/octave.cc --- a/libinterp/octave.cc Wed Oct 03 02:32:26 2012 -0400 +++ b/libinterp/octave.cc Wed Oct 03 02:38:53 2012 -0400 @@ -725,6 +725,7 @@ break; case 'H': + Fsaving_history (octave_value (false)); read_history_file = false; break; @@ -931,9 +932,6 @@ install_builtins (); - if (! read_history_file) - bind_internal_variable ("saving_history", false); - for (std::list::const_iterator it = command_line_path.begin (); it != command_line_path.end (); it++) load_path::set_command_line_path (*it);