freebsd-src/bin/sh
Daniel Kolesa 3ce64010f8 sh(1): fix history file write checking
We cannot just compare histsizeval() against 0, since that returns
a string pointer, which is always non-zero (non-null). The logic
in sethistsize() initializes the history size to 100 with values
that are non-number, and an empty string counts as that. Therefore,
the only time we want to not write into history with HISTSIZE val
set is when it's explicitly 0.

MFC after:	2 weeks
2023-03-20 17:56:56 +01:00
..
bltin
funcs
tests sh: nullify ENV in tests 2022-08-20 13:27:42 +02:00
alias.c
alias.h
arith.h
arith_yacc.c
arith_yacc.h
arith_yylex.c
builtins.def
cd.c
cd.h
dot.profile sh: Set PATH envvar after setting HOME in dotfile 2021-10-26 22:50:09 +08:00
dot.shrc sh(1): fix home/del key on mobaxterm env 2021-10-20 14:00:20 +02:00
error.c src/bin/sh: Fix spelling errors 2021-10-02 10:39:24 -06:00
error.h
eval.c src/bin/sh: Fix spelling errors 2021-10-02 10:39:24 -06:00
eval.h
exec.c sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
exec.h
expand.c
expand.h
histedit.c sh(1): fix history file write checking 2023-03-20 17:56:56 +01:00
input.c sh: Avoid some headers when NO_HISTORY is set. 2021-11-24 17:53:39 -08:00
input.h sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
jobs.c sh: Don't add something to a null pointer 2022-01-26 23:13:20 +01:00
jobs.h sh: Fix mismatch in array bounds for vforkexecshell(). 2022-09-28 14:05:07 -07:00
mail.c
mail.h
main.c sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
main.h sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
Makefile sh: install hard link with same mode as target 2022-11-23 15:10:02 -05:00
Makefile.depend
memalloc.c
memalloc.h
miscbltin.c read builtin: Empty variables on timeout 2021-09-24 11:34:54 -07:00
mkbuiltins
mknodes.c
mksyntax.c
mktokens
myhistedit.h
mystring.c
mystring.h
nodes.c.pat
nodetypes src/bin/sh: Fix spelling errors 2021-10-02 10:39:24 -06:00
options.c sh: accept fc options grouped behind one '-' 2022-08-20 13:26:05 +02:00
options.h sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
output.c
output.h
parser.c sh(1): Allow non-printing characters in prompt strings 2022-12-22 19:10:48 +01:00
parser.h
profile sh: when loading profile, read only .sh files. 2022-10-22 19:05:31 +02:00
redir.c
redir.h
sh.1 sh(1): Allow non-printing characters in prompt strings 2022-12-22 19:10:48 +01:00
shell.h src/bin/sh: Fix spelling errors 2021-10-02 10:39:24 -06:00
show.c
show.h
TOUR
trap.c sh: Avoid some headers when NO_HISTORY is set. 2021-11-24 17:53:39 -08:00
trap.h
var.c
var.h