#
e6c7c102 |
| 23-Apr-2024 |
jsg <jsg@openbsd.org> |
correct indentation; no functional change ok tb@
|
#
abe76290 |
| 21-Jun-2023 |
millert <millert@openbsd.org> |
ksh: escape control chars when displaying file name completions. If there are multiple matches when using autocomplete, the list of matching file names was output as-is. However, for a single match,
ksh: escape control chars when displaying file name completions. If there are multiple matches when using autocomplete, the list of matching file names was output as-is. However, for a single match, control characters are escaped before the file name is displayed. This makes the behavior more consistent by escaping control chars in the list of matches too. Discussed with deraadt@, OK op@
show more ...
|
#
3aaa63eb |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitrary 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.
show more ...
|
#
95af8abf |
| 27-Jun-2019 |
deraadt <deraadt@openbsd.org> |
Some asprintf() calls were checked < 0, rather than the precise == -1. ok millert nicm tb, etc
|
#
ef80df5c |
| 30-Dec-2018 |
guenther <guenther@openbsd.org> |
Delete unnecessary <libgen.h> #includes
ok deraadt@
|
#
a3c80d85 |
| 18-Jun-2018 |
millert <millert@openbsd.org> |
Add clear-screen emacs editing command, currently not bound to a key by default. The shell will query the terminfo database to find the escape sequence to clear the screen. OK deraadt@
|
#
517d3880 |
| 09-Apr-2018 |
tobias <tobias@openbsd.org> |
Support 64 bit integers on 32 bit architectures.
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
|
#
97445c82 |
| 15-Mar-2018 |
anton <anton@openbsd.org> |
Favor usage of __func__ in warning/error messages. Some of them referred to the wrong function and fix the rest for consistency. Diff from Michael W. Bombardieri with some cosmetic cleanup applied.
Favor usage of __func__ in warning/error messages. Some of them referred to the wrong function and fix the rest for consistency. Diff from Michael W. Bombardieri with some cosmetic cleanup applied.
ok benno@ tb@
show more ...
|
#
6c72b531 |
| 16-Jan-2018 |
jca <jca@openbsd.org> |
Introduce internal_warningf() and mark internal_errorf() as noreturn
This helps tools like scan-build, and follows the example of warningf() and errorf(). ok anton@
|
#
3dc0c5b1 |
| 15-Jan-2018 |
jca <jca@openbsd.org> |
Stop pretending we support building ksh without EDIT/HISTORY support
ok anton@
|
#
4c503bcd |
| 06-Jan-2018 |
millert <millert@openbsd.org> |
Bring back the sign compare changes, this time with a fix from otto@ that fixes the issues seen on hppa. OK deraadt@ otto@
|
#
60ccd8d7 |
| 04-Jan-2018 |
millert <millert@openbsd.org> |
Back out sign compare changes that appear to cause problems on hppa. Requested by deraadt@
|
#
43da03fc |
| 01-Jan-2018 |
millert <millert@openbsd.org> |
Add WARNINGS=yes to ksh and fix the resulting sign compare warnings. OK tb@
|
#
201e0776 |
| 27-Dec-2017 |
millert <millert@openbsd.org> |
Add -Wshadow to Makefile and fix the resulting warnings. Many of the warnings are due to the use of globals with generic names, specifically "options" and "path". I've renamed "options" to "sh_opti
Add -Wshadow to Makefile and fix the resulting warnings. Many of 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@
show more ...
|
#
cd88d87f |
| 08-Sep-2016 |
nicm <nicm@openbsd.org> |
Don't try to look up array names for complete_* that aren't alphanumeric, spotted by and ok sthen
|
#
29b51a13 |
| 07-Sep-2016 |
dcoppa <dcoppa@openbsd.org> |
remove unused variable 'last'
ok nicm@
|
#
195d2f38 |
| 04-Sep-2016 |
nicm <nicm@openbsd.org> |
Allow simple custom completions by creating an array named "complete_commandname_argnum", for example:
set -A complete_kill_1 -- -9 -HUP -INFO -KILL -TERM
To set completions for the first argum
Allow simple custom completions by creating an array named "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
show more ...
|
#
6b323d44 |
| 16-Aug-2016 |
tb <tb@openbsd.org> |
Avoid a compiler warning about use of uninitialized l.beg emitted 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 u
Avoid a compiler warning about use of uninitialized l.beg emitted 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
show more ...
|
#
8570e725 |
| 17-Mar-2016 |
mmcc <mmcc@openbsd.org> |
remove some ARGSUSED
|
#
5ae5b57e |
| 30-Dec-2015 |
tedu <tedu@openbsd.org> |
rename global "e" to genv to avoid accidental shadowing and aliasing. ok millert nicm tb
|
#
4a010e0c |
| 14-Dec-2015 |
tb <tb@openbsd.org> |
Move system headers from sh.h to those files that actually need them.
ok mmcc@ a while ago
|
#
d67c3782 |
| 01-Nov-2015 |
mmcc <mmcc@openbsd.org> |
Add uses of areallocarray(). mksh and Bitrig ksh already have similar functions. With help from Theo Buehler.
ok nicm@
|
#
bd2acf29 |
| 21-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Assign pointer to NULL rather than 0.
ok nicm@
|
#
56018212 |
| 19-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Move string.h include from sh.h to the files that use it.
ok nicm@
|
#
b608f594 |
| 19-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Apply style(9) to header includes.
ok nicm@
|