Hi all,
I have created a small script that tries to work around an issue with saving command history in the FreeBSD sh shell.
The reason I wrote it is that sh is the default shell for root on FreeBSD, and overall it is not bad. However, for me as a user, the most annoying issue is how command history is saved.
Because of some quirks in history handling, when multiple root terminals are open, usually only one of them — the last one closed — gets its history saved properly.
Instead of posting the whole script here, I have put it on GitHub:
https://github.com/kacirekj/freebsd-sh-shell-history
I have created a small script that tries to work around an issue with saving command history in the FreeBSD sh shell.
The reason I wrote it is that sh is the default shell for root on FreeBSD, and overall it is not bad. However, for me as a user, the most annoying issue is how command history is saved.
Because of some quirks in history handling, when multiple root terminals are open, usually only one of them — the last one closed — gets its history saved properly.
Instead of posting the whole script here, I have put it on GitHub:
https://github.com/kacirekj/freebsd-sh-shell-history