bash has a handy file .bash_history in which it saves the history of commands and on the next execution of bash the history is populated with saved commands.
Is it possible to save bc command history to a file in the same way and then load it on startup so that bc history is preserved?
I tried reading GNU bc manual and it mentions readline and libedit. From ldd /usr/bin/bc I see mine uses readline and readline has write_history and read_history functions. Is this functionality implemented in bc or to do it I'll need to patch bc?