HomeFreeBSD

sh: implement persistent history storage

Description

sh: implement persistent history storage

Implement persistent history storage:
the strategy is simple at start: loads the existing .sh_history file
at exit dump it.

The implementation respects the HISTFILE variable and its POSIX
definition: ~/.sh_history is used if HISTFILE is not set.

to avoid sh to create the history file, set HISTSIZE to 0 or HISTFILE to
en empty value

Co-authored-by: pstef
Reviewed by: jilles
Differential Revision: https://reviews.freebsd.org/D29493

Details

Provenance
baptAuthored on Mar 30 2021, 8:28 AM
Reviewer
jilles
Differential Revision
D29493: sh: implement persistent history storage
Parents
rG9867224bab3f: tcp:Host cache and rack ending up with incorrect values.
Branches
Unknown
Tags
Unknown