Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-10-09 | Better document what the -v flag actually does and that you can | Todd C. Miller | |
specify it more than once. Adapted from a diff by and OK schwarze@ | |||
2017-09-16 | Carefully add casts to silence clang sign-compare warnings. ok millert@ | Otto Moerbeek | |
2017-09-12 | there is no offical way to get the max value of time_t, but this one works | Otto Moerbeek | |
on any sensible posix system (in which time_t must be an integer type) ok deraadt@ millert@ | |||
2017-09-11 | Use getrusage(2) for the built-in time trial instead of getttimeofday(2). | Todd C. Miller | |
This makes it possible to measure just the ellapsed user time, which is what we really care about when benchmarking an algorithm. OK deraadt@ | |||
2017-09-10 | Backslash escapes the next character in filename patterns. | Philip Guenther | |
ok millert@ | |||
2017-09-08 | Avoid clang warning and make code better by using a signed long; | Otto Moerbeek | |
with hint from millert@; ok millert@ guenther@ | |||
2017-09-07 | Keep histptr inside of the allocated history array | Jeremie Courreges-Anglas | |
histptr == history -1 means that the history is empty, but the behavior is then undefined. Allocate an extra array entry to work around this. Input & ok tb@ | |||
2017-09-06 | intvar < sizeof(...) does not catch negative values since an int -> unsigned | Otto Moerbeek | |
conversion is involved. Cast the sizeof to int to get a signed compare; ok deraadt@ bluhm@ | |||
2017-09-03 | Use PATH_MAX instead of a local define | Jeremie Courreges-Anglas | |
okk deraadt@ millert@ anton@ | |||
2017-09-02 | whitespace commit from BC | Theo de Raadt | |
2017-08-31 | ignoredups implementation quirk | Jeremie Courreges-Anglas | |
Reminded by tb@ | |||
2017-08-30 | Guard FEMACSUSEMETA uses behind #ifdef EMACS | Jeremie Courreges-Anglas | |
2017-08-30 | Implement HISTCONTROL ignoredups & ignorespace features | Jeremie Courreges-Anglas | |
ignoredups: don't save the current line if it is identical to the last history line. ignorespace: don't save the current line if it starts with a space ok anton@ millert@ | |||
2017-08-30 | Stop exposing the emacs-usemeta option, and warn when trying to set it. | Jeremie Courreges-Anglas | |
Unused since 2012, to be removed after 6.2. Input from anton@, ok anton@ millert@ | |||
2017-08-30 | Drop needless comment | Jeremie Courreges-Anglas | |
ok anton@ millert@ | |||
2017-08-30 | No need for NULL checks before afree() | Jeremie Courreges-Anglas | |
2017-08-30 | Zap redundant assignment; ok jca@ | anton | |
2017-08-30 | Respect inputline_size argument. No functional change since tenex() only has one | anton | |
call site where `inputline_size == sizeof(buf)`. | |||
2017-08-30 | Fix pasting of long (>BUFSIZ) lines in csh with filec enabled. NUL-terminating | anton | |
the input buffer instructs csh that the buffer contains a complete command. This is wrong and should only happen when buffer is not full, otherwise more data has to be read in order form a complete command. While here, do not print the prompt again when the input exceeds the input buffer and while inserting a line continuation (backslash). | |||
2017-08-29 | Kill a useless setlocale() query | Jeremie Courreges-Anglas | |
Pointless since the removal of the setlocale() call in main.c:rev1.82, the emacs-usemeta flag isn't used in the code since 2012. This kills a chunk of code in a statically linked ksh. ok millert@ | |||
2017-08-29 | Since rev 1.61 of print.c exp(3) and log(3) are not used anymore. | Alexander Bluhm | |
Do not link ps(1) with libm. from miod@; OK millert@ | |||
2017-08-28 | Don't bother setting freed history lines to NULL. | Jeremie Courreges-Anglas | |
Dead code that could send the wrong hint to an unsuspicious reader. The code should walk use 'history' & 'histptr' to walk the array. ok millert@, "go for it" tb@ | |||
2017-08-28 | Put history_write() in line with other functions that walk history | Jeremie Courreges-Anglas | |
One method is enough: only access history lines between 'history' and 'histptr'. Pointers outside these bounds might be invalid. ok millert@, "go for it" tb@ | |||
2017-08-27 | Free history entries when resizing/reloading | Jeremie Courreges-Anglas | |
Cluebat & ok tb@ | |||
2017-08-27 | Remove unused copy_non_glob() in ksh. | Nayden Markatchev | |
Report and diff by David Crosby <dave@dafyddcrosby.com> OK otto@ | |||
2017-08-26 | Don't lose the latest history line & don't crash when shrinking histsize | Jeremie Courreges-Anglas | |
ok tb@ | |||
2017-08-19 | \$ in PS1 gets you the default prompt character, which differs from the | Jason McIntyre | |
default prompt by not including a space after the character; diff from scott cheloha | |||
2017-08-16 | Explicitly say that expr(1) handles decimal integers only, as mandated | Ingo Schwarze | |
by POSIX and as implemented in our utility; triggered by a question from Alessandro DE LAURENZIS <just22 at atlantide dot t28 dot net> on misc@. OK millert@ | |||
2017-08-15 | Remove expensive pointer check in afree() | Jeremie Courreges-Anglas | |
The check added in rev 1.8 walks the whole freelist to catch cases where an unknown pointer is passed to afree(); but it can't catch cases whether the struct link has been corrupted by an invalid memory write. And it becomes very expensive when you have lots of items in an area (for example with a huge HISTSIZE). Discussed with & ok millert@ tb@ | |||
2017-08-13 | convert gettimeofday to mono clock. | Ted Unangst | |
from Scott Cheloha | |||
2017-08-11 | Retire old behavior of requiring root prompt to contain # or \! | Philip Guenther | |
Requested by akoshibe and phessler ok phessler@ anton@ jca@ | |||
2017-08-11 | Check whether the first two characters of $HISTFILE are the magic | Theo Buehler | |
characters of the old binary ksh history file. In that case ignore the history file after displaying an error once. Prevents annoying repeated 'history file is corrupt' messages in $HOME on NFS setups suffered by henning and makes the migration from the old to the new history file format safer. ok henning, tweaks & ok jca | |||
2017-08-01 | Disable ksh VI-editing mode on the install media. We need the space | Theo de Raadt | |
savings. | |||
2017-07-26 | Align variables and put logical operators at EOL. No binary change. | anton | |
2017-07-26 | Postpone printing of prompt if filec is enabled in csh. Any I/O should be | anton | |
performed first when canonical mode has been disabled on the tty just like ksh does. Discovered by the regress tests. Joint work with bluhm@, ok deraadt@ | |||
2017-07-24 | Fix off-by-one error introduced in the previous commit. | Theo Buehler | |
ok jca | |||
2017-07-24 | Prettify, simplify | Jeremie Courreges-Anglas | |
Input & ok tb@ | |||
2017-07-24 | Use memmove instead of a hand-rolled loop | Jeremie Courreges-Anglas | |
A tad faster in my HISTFILE "benchmarks". ok tb@ | |||
2017-07-24 | Add < and > to the comment describind the grammar. | Jeremie Courreges-Anglas | |
Picked in a diff from Klemens Nanni | |||
2017-07-22 | Use monotonic clock for the time command in csh and ksh. | anton | |
From Scott Cheloha ok tb@ | |||
2017-07-18 | Restore tty when aborting loop. | anton | |
ok deraadt@ | |||
2017-07-10 | remove misc. depend and yacc nits that no longer matter. | Marc Espie | |
okay millert@ | |||
2017-07-09 | remove redundant variable declarations in Makefiles, since those are | Marc Espie | |
the default. okay millert@ | |||
2017-07-06 | fix broken cross references; found with mandoc -Tlint | Ingo Schwarze | |
2017-07-05 | nits about trailing punctuation found with mandoc -Tlint | Ingo Schwarze | |
2017-07-04 | Backout previous due to a bug discovered by zhuk@ that requires some tinkering | anton | |
and is not an easy fix for now. | |||
2017-07-04 | Add support for pattern substitution to variables in ksh using a common syntax | anton | |
borrowed from ksh93. Survived a ports build performed by naddy@ and encouraged by many. | |||
2017-07-03 | no need to generate y.tab.h if nothing uses it, set YFLAGS to nothing | Marc Espie | |
instead of CLEANFILES += y.tab.h okay millert@ | |||
2017-06-29 | Increase the input line buffer to 4096 bytes. | Martijn van Duren | |
Sounds good to deraadt@ OK anton@ | |||
2017-06-29 | Switch TIOCSTAT to _IO(). Two decades ago it was mistakenly defined to | Theo de Raadt | |
take an argument. Discussed with millert and tedu. |