Query or set the internal variable that specifies how commands are saved to the history list.
The default value is an empty character string, but may be overridden by the
environment variable OCTAVE_HISTCONTROL
.
The value of history_control
is a colon-separated list of values
controlling how commands are saved on the history list. If the list
of values includes ignorespace
, lines which begin with a space
character are not saved in the history list. A value of ignoredups
causes lines matching the previous history entry to not be saved.
A value of ignoreboth
is shorthand for ignorespace
and
ignoredups
. A value of erasedups
causes all previous lines
matching the current line to be removed from the history list before that
line is saved. Any value not in the above list is ignored. If
history_control
is the empty string, all commands are saved on
the history list, subject to the value of history_save
.
See also: history_file, history_size, history_timestamp_format_string, history_save.
Package: octave