Go to the first, previous, next, last section, table of contents.


7. Readline and Libedit Options

GNU @command{bc} can be compiled (via a configure option) to use the GNU @command{readline} input editor library or the BSD @command{libedit} library. This allows the user to do more editing of lines before sending them to @command{bc}. It also allows for a history of previous lines typed. When this option is selected, @command{bc} has one more special variable. This special variable, history is the number of lines of history retained. A value of -1 means that an unlimited number of history lines are retained. This is the default value. Setting the value of history to a positive number restricts the number of history lines to the number given. The value of 0 disables the history feature. For more information, read the user manuals for the GNU @command{readline}, @command{history} and BSD @command{libedit} libraries. One can not enable both @command{readline} and @command{libedit} at the same time.


Go to the first, previous, next, last section, table of contents.