Mercurial > hg > octave-nkf
diff src/input.cc @ 5189:85b315ad5f7d
[project @ 2005-03-04 02:46:08 by jwe]
author | jwe |
---|---|
date | Fri, 04 Mar 2005 02:46:08 +0000 |
parents | 0f9108f298ab |
children | 3d5b7114da82 |
line wrap: on
line diff
--- a/src/input.cc +++ b/src/input.cc @@ -103,6 +103,10 @@ // current_eval_string yet. bool input_from_eval_string_pending = false; +// TRUE means that input is coming from a file that was named on +// the command line. +bool input_from_command_line_file = false; + // TRUE means we're parsing a function file. bool reading_fcn_file = false; @@ -234,7 +238,7 @@ if (! current_input_line.empty ()) { - if (! input_from_startup_file) + if (! (input_from_startup_file || input_from_command_line_file)) command_history::add (current_input_line); if (! (reading_fcn_file || reading_script_file))