Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | When system calls indicate an error they return -1, not some arbitrary | 2019-06-28 | 1 | -3/+3 | |
| | | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | ||||
* | Some asprintf() calls were checked < 0, rather than the precise == -1. | 2019-06-27 | 1 | -3/+3 | |
| | | | | ok millert nicm tb, etc | ||||
* | Delete unnecessary <libgen.h> #includes | 2018-12-30 | 1 | -2/+1 | |
| | | | | ok deraadt@ | ||||
* | Add clear-screen emacs editing command, currently not bound to a | 2018-06-18 | 1 | -3/+3 | |
| | | | | | key by default. The shell will query the terminfo database to find the escape sequence to clear the screen. OK deraadt@ | ||||
* | Support 64 bit integers on 32 bit architectures. | 2018-04-09 | 1 | -3/+3 | |
| | | | | | | | No binary change on amd64 and there should be no differences on any other 64 bit architecture either (because long = int64_t). ok cheloha, tb | ||||
* | Favor usage of __func__ in warning/error messages. Some of them referred to the | 2018-03-15 | 1 | -2/+2 | |
| | | | | | | | wrong function and fix the rest for consistency. Diff from Michael W. Bombardieri with some cosmetic cleanup applied. ok benno@ tb@ | ||||
* | Introduce internal_warningf() and mark internal_errorf() as noreturn | 2018-01-16 | 1 | -4/+4 | |
| | | | | | This helps tools like scan-build, and follows the example of warningf() and errorf(). ok anton@ | ||||
* | Stop pretending we support building ksh without EDIT/HISTORY support | 2018-01-15 | 1 | -3/+1 | |
| | | | | ok anton@ | ||||
* | Bring back the sign compare changes, this time with a fix from otto@ | 2018-01-06 | 1 | -5/+5 | |
| | | | | that fixes the issues seen on hppa. OK deraadt@ otto@ | ||||
* | Back out sign compare changes that appear to cause problems on hppa. | 2018-01-04 | 1 | -5/+5 | |
| | | | | Requested by deraadt@ | ||||
* | Add WARNINGS=yes to ksh and fix the resulting sign compare warnings. | 2018-01-01 | 1 | -5/+5 | |
| | | | | OK tb@ | ||||
* | Add -Wshadow to Makefile and fix the resulting warnings. Many of | 2017-12-27 | 1 | -3/+3 | |
| | | | | | | | the warnings are due to the use of globals with generic names, specifically "options" and "path". I've renamed "options" to "sh_options" since it holds the shell options and "path" to "search_path". OK jca@ tb@ | ||||
* | Don't try to look up array names for complete_* that aren't | 2016-09-08 | 1 | -3/+6 | |
| | | | | alphanumeric, spotted by and ok sthen | ||||
* | remove unused variable 'last' | 2016-09-07 | 1 | -2/+2 | |
| | | | | ok nicm@ | ||||
* | Allow simple custom completions by creating an array named | 2016-09-04 | 1 | -4/+79 | |
| | | | | | | | | | | | "complete_commandname_argnum", for example: set -A complete_kill_1 -- -9 -HUP -INFO -KILL -TERM To set completions for the first argument to kill(1). If no complete_* arrays are present, the normal filename completion is offered. positive comments from many; man page ok/tweaks jmc; ok tedu | ||||
* | Avoid a compiler warning about use of uninitialized l.beg emitted | 2016-08-16 | 1 | -11/+13 | |
| | | | | | | | | when ksh is compiled with -Os (done in distrib/special): move the bit using XPptrv(l) (which expands to l.beg) where it is actually used and clearly initialized. ok tedu, tweak + ok millert | ||||
* | remove some ARGSUSED | 2016-03-17 | 1 | -2/+1 | |
| | |||||
* | rename global "e" to genv to avoid accidental shadowing and aliasing. | 2015-12-30 | 1 | -2/+2 | |
| | | | | ok millert nicm tb | ||||
* | Move system headers from sh.h to those files that actually need them. | 2015-12-14 | 1 | -1/+4 | |
| | | | | ok mmcc@ a while ago | ||||
* | Add uses of areallocarray(). mksh and Bitrig ksh already have similar | 2015-11-01 | 1 | -2/+3 | |
| | | | | | | functions. With help from Theo Buehler. ok nicm@ | ||||
* | Assign pointer to NULL rather than 0. | 2015-10-21 | 1 | -2/+2 | |
| | | | | ok nicm@ | ||||
* | Move string.h include from sh.h to the files that use it. | 2015-10-19 | 1 | -1/+2 | |
| | | | | ok nicm@ | ||||
* | Apply style(9) to header includes. | 2015-10-19 | 1 | -5/+7 | |
| | | | | ok nicm@ | ||||
* | remove null check before afree. from Michael McConville | 2015-10-09 | 1 | -3/+2 | |
| | |||||
* | Remove EXTERN from edit.[ch], from Michael McConville. | 2015-09-26 | 1 | -3/+2 | |
| | |||||
* | Last of the (thing *)0 -> NULL, from Michael McConville. No binary | 2015-09-18 | 1 | -3/+3 | |
| | | | | change. | ||||
* | Remove unnecessary casts, from Michael McConville. No binary change. | 2015-09-17 | 1 | -3/+3 | |
| | |||||
* | correct spelling of NULL from (char *)0. from Michael McConville. | 2015-09-15 | 1 | -7/+7 | |
| | | | | ok md5 | ||||
* | remove casts and null checks before free. from Michael McConville | 2015-09-01 | 1 | -2/+2 | |
| | | | | ok deraadt | ||||
* | Escape ! characters for tab-completion, required for "set -o csh-history" users. | 2015-03-12 | 1 | -2/+2 | |
| | | | | Tweak to maintain ascii ordering suggested by Simon Nicolussi. OK halex@ | ||||
* | ctype cleanups. Repeated re-audits of this sensitive area by okan and | 2013-12-17 | 1 | -2/+3 | |
| | | | | | myself, with a variety of other people spending some time as well. Thanks. | ||||
* | add : to special chars. | 2013-06-03 | 1 | -2/+2 | |
| | | | | identical diffs from plhk sdf.org and leva ecentrum.hu. ok deraadt. | ||||
* | revert the tweak part of the last commit which, apart from the | 2013-01-21 | 1 | -3/+2 | |
| | | | | | | | | questionable functionality of being able to expand environment variables that did not match a filename, preserved the annoyance of having stuff like "~/nonexistant" expanded to "~/nonexistant\* " ok stsp@ mpi@ | ||||
* | Fix backslash escaping during filename tab-completion in ksh. | 2013-01-20 | 1 | -24/+8 | |
| | | | | | | | Diff originally submitted by Alexander Polakov, with a small tweak from me to avoid breaking tab-completion of environment variables (problem pointed out by bentley). ok sthen halex mpi | ||||
* | fake a sigwinch after each job, so if the terminal changes size, | 2012-09-10 | 1 | -2/+2 | |
| | | | | we'll notice and update | ||||
* | Escape "=", remove if 0'd out code and simplify check in x_print_expansions. | 2010-05-20 | 1 | -31/+6 | |
| | | | | millert@ ok some time ago. | ||||
* | fix memory leaks and one potential null deref found by coverity. from netbsd. | 2007-08-02 | 1 | -2/+8 | |
| | | | | millert@ ok | ||||
* | escape [, ], and ? as well. from cbiere@netbsd. | 2007-08-01 | 1 | -2/+2 | |
| | | | | millert@ ok. | ||||
* | fix a few name clashes with libc; found by lint. ok deraadt@ | 2005-12-11 | 1 | -2/+2 | |
| | |||||
* | Process window size changes after xread(). [change window size] | 2005-09-11 | 1 | -4/+2 | |
| | | | | | echo $COLUMS $LINES; will now print the new sizes immediately, instead of after the second echo. ok millert@ | ||||
* | use STD{IN,OUT,ERR}_FILENO | 2005-04-13 | 1 | -2/+2 | |
| | |||||
* | lots of indentation cleanup, now ksh is readable like our other code. | 2005-03-30 | 1 | -36/+30 | |
| | | | | double checked to make sure no binaries change, and eyed by niallo | ||||
* | knf | 2005-02-25 | 1 | -1/+2 | |
| | |||||
* | Use stdbool.h instead of rolling our own bools. | 2004-12-22 | 1 | -12/+12 | |
| | |||||
* | Ansification plus some minor knf. No binary change on i386 and | 2004-12-20 | 1 | -91/+32 | |
| | | | | | sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@ | ||||
* | spacing | 2004-12-19 | 1 | -4/+4 | |
| | |||||
* | Use struct termios instead of TTY_state typedef | 2004-12-18 | 1 | -5/+4 | |
| | | | | Use tc[gs]etattr() instead of [gs]et_tty() abstraction | ||||
* | Flags set in signal handlers should be volatile sig_atomic_t | 2004-12-18 | 1 | -2/+2 | |
| | |||||
* | Use _POSIX_VDISABLE directly instead of assigning it to a variable. | 2004-12-18 | 1 | -13/+9 | |
| | |||||
* | Remove unused OS dependent #ifdef blocks, #defines and macro abstraction. | 2004-12-18 | 1 | -128/+32 | |
| | | | | First step in making the ksh code easier to read. From Matthias Kilian |