Incoming changes in the sh(1) default behaviour

Baptiste Daroussin bapt at
Thu May 6 21:25:04 UTC 2021

Hello everyone

We have been working implementing the persistent history storage in sh(1).

It will now respect POSIX:
- by default the history will be saved and loaded from ~/.sh_history
- if HISTFILE is set it will use histfile instead of ~/.sh_history
- if HISTFILE is set but empty it will not load or save anything
- if HISTSIZE is set to 0 it will also not load or save anything

The change will be pushed very soon to head and probably not be MFC except if
someone manage to convince me otherwise.

Best regards,

More information about the freebsd-current mailing list