freebsd-dev/bin/sh
Baptiste Daroussin 988b1bb0c5 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
2021-05-10 18:57:13 +02:00
..
bltin
funcs
tests
alias.c
alias.h
arith_yacc.c
arith_yacc.h
arith_yylex.c
arith.h
builtins.def
cd.c
cd.h
dot.profile
dot.shrc
error.c
error.h
eval.c
eval.h
exec.c
exec.h
expand.c
expand.h
histedit.c sh: implement persistent history storage 2021-05-10 18:57:13 +02:00
input.c
input.h
jobs.c
jobs.h
mail.c
mail.h
main.c sh: implement persistent history storage 2021-05-10 18:57:13 +02:00
main.h
Makefile
Makefile.depend
memalloc.c
memalloc.h
miscbltin.c
mkbuiltins
mknodes.c
mksyntax.c
mktokens
myhistedit.h sh: implement persistent history storage 2021-05-10 18:57:13 +02:00
mystring.c
mystring.h
nodes.c.pat
nodetypes
options.c
options.h
output.c
output.h
parser.c
parser.h
profile
redir.c
redir.h
sh.1 sh: implement persistent history storage 2021-05-10 18:57:13 +02:00
shell.h
show.c sh: fix debug build 2021-04-11 09:23:14 +02:00
show.h sh: fix debug build 2021-04-11 09:23:14 +02:00
TOUR
trap.c sh: implement persistent history storage 2021-05-10 18:57:13 +02:00
trap.h
var.c
var.h