summaryrefslogtreecommitdiff
path: root/bin/ksh/history.c
AgeCommit message (Expand)Author
2024-08-27inline `start' and simplify; from/ok millert@Omar Polo
2024-08-27ksh: use strtonum() in findhistrel()Omar Polo
2019-10-27No need for <sys/uio.h> as writev(2) isn't used any more.Jeremie Courreges-Anglas
2019-10-27Don't fail hard if we can't preallocate history storage.Jeremie Courreges-Anglas
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2018-11-20Fix the case where the recursion detection isn't reset when the command isMartijn van Duren
2018-01-15Don't try to open HISTFILE if the variable is unset.Jeremie Courreges-Anglas
2018-01-15Stop pretending we support building ksh without EDIT/HISTORY supportJeremie Courreges-Anglas
2018-01-06Bring back the sign compare changes, this time with a fix from otto@Todd C. Miller
2018-01-04Back out sign compare changes that appear to cause problems on hppa.Todd C. Miller
2018-01-01Add WARNINGS=yes to ksh and fix the resulting sign compare warnings.Todd C. Miller
2017-11-21Initialize *histbase to NULL to fix a bus error in emacs editing modeTheo Buehler
2017-10-23Kill needless rewind(3) call in hist_init()Jeremie Courreges-Anglas
2017-10-23Skip (and warn about) overlong history lines.Jeremie Courreges-Anglas
2017-10-18The return value of this function isn't used.Jeremie Courreges-Anglas
2017-09-07Keep histptr inside of the allocated history arrayJeremie Courreges-Anglas
2017-08-31ignoredups implementation quirkJeremie Courreges-Anglas
2017-08-30Implement HISTCONTROL ignoredups & ignorespace featuresJeremie Courreges-Anglas
2017-08-28Don't bother setting freed history lines to NULL.Jeremie Courreges-Anglas
2017-08-28Put history_write() in line with other functions that walk historyJeremie Courreges-Anglas
2017-08-27Free history entries when resizing/reloadingJeremie Courreges-Anglas
2017-08-26Don't lose the latest history line & don't crash when shrinking histsizeJeremie Courreges-Anglas
2017-08-11Check whether the first two characters of $HISTFILE are the magicTheo Buehler
2017-08-01Disable ksh VI-editing mode on the install media. We need the spaceTheo de Raadt
2017-07-24Fix off-by-one error introduced in the previous commit.Theo Buehler
2017-07-24Prettify, simplifyJeremie Courreges-Anglas
2017-07-24Use memmove instead of a hand-rolled loopJeremie Courreges-Anglas
2017-05-29Change the mmap(2)-based binary history file with lots of magic and aTheo Buehler
2016-08-24Use writev(2) to write history records using a single syscall.Todd C. Miller
2016-08-24Avoid recursively calling c_fc(). Fixes a core dump from "r r" andTodd C. Miller
2015-12-30rename global "e" to genv to avoid accidental shadowing and aliasing.Ted Unangst
2015-12-14Move system headers from sh.h to those files that actually need them.tb
2015-12-14Remove a superfluous macro. No binary change. ok tb@mmcc
2015-11-02Another aresize() -> areallocarray().mmcc
2015-11-01Add uses of areallocarray(). mksh and Bitrig ksh already have similarmmcc
2015-10-21Remove a couple of unhelpful defines.mmcc
2015-10-21Don't bother casting NULL.mmcc
2015-10-19Move string.h include from sh.h to the files that use it.mmcc
2015-10-19Apply style(9) to header includes.mmcc
2015-10-09remove null check before afree. from Michael McConvilleTed Unangst
2015-10-08stop trying to gift history files to the original owner. instead, don'tTed Unangst
2015-10-08little cleanup from Michael McConville, mostly related to stale comments.Ted Unangst
2015-09-17More (foo *)0 -> NULL, from Michael McConville. No binary change.Nicholas Marriott
2015-09-17Remove unnecessary casts, from Michael McConville. No binary change.Nicholas Marriott
2015-09-15correct spelling of NULL from (char *)0. from Michael McConville.Ted Unangst
2015-09-01remove casts and null checks before free. from Michael McConvilleTed Unangst
2014-11-20remove sys/file.h includes in favor of fcntl.h where needed.Ted Unangst
2010-05-19properly keep track of the line number after a trap.Jasper Lievisse Adriaanse
2010-05-01Correct a comment; from dawedawe (at) gmx.dePhilip Guenthe
2009-07-02avoid infinite recursion if unlink fails. reported by Stefan PetterssonMartynas Venckus