Solved sh shell

I have for root sh shell and user ksh.
I do not know what happened because in sh shell it keep history after upgrade to FreeBSD 14.2 .
It keep if I use su - or if I log in as root.
I didn't change anything.

Thank you.
 
Updating the operating system will not remove or overwrite user-level configuration/state files such as ~/.sh_history.
 
The explanation likely involves the setting of the environment variable HISTFILE and how your particular Bourne or (various) Korn shells interpret that.

Also if the nominated $HISTFILE is not writable by the user, you will get unexpected behaviour.
 
Back
Top