summaryrefslogtreecommitdiff
path: root/bin/ksh
AgeCommit message (Collapse)Author
2023-06-03adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH}lukem
Use ${CC_WNO_IMPLICIT_FALLTHROUGH} instead of the older style more complex expressions.
2023-06-02follow the steps of Andrew Doran (ad) commit and fix more s/loose/lose/ typos.andvar
also s/beyound/beyond/ and few others along the way, mainly in comments.
2022-10-31fix various typos in comments and one output message.andvar
2022-08-21ksh(1): fix pasto in the description of the -l option.uwe
2022-08-07fix various typos in comments, documentation and messages.andvar
mainly s/paramater/parameter/ and s/reduntant/redundant/.
2022-07-03Fix core dump caused bykre
ksh -c '(i=10; echo $((++-+++i)))' reported by Steffen Nurpmeso (not on a NetBSD list or PR). Seems pointless to fix just one of the bugs in this thing, but this one was easy enough (and stupid enough). (The "i=10" part is unimportant, as is the sub-shell).
2021-11-06s/writting/writing/msaitoh
2021-10-30"no affect" -> "no effect" in man pages and comments.andvar
2021-09-16It is either teaching gcc about aaah or adding FALLTHROUGH.christos
2021-09-16support -Zchristos
2021-07-24Fix all remaining typos, mainly in comments but also in few definitions and ↵andvar
log messages, reported by me in PR kern/54889. Also fixed some additional typos in comments, found on review of same files or typos.
2021-02-23PR/56007: Greg A. Woods: ksh unable to execute ERR trapschristos
(probably since 2016/03/17 - i.e. 8.x and 9.x)
2019-10-29Avoid arithmetics on strings.joerg
2019-09-29convert HAVE_GCC == 7 to HAVE_GCC >= 7.mrg
2019-09-26Fix FALLTHROUGH comments.mlelstv
2019-02-04- use -Wno-error=implicit-fallthrough with GCC7.mrg
2018-08-26Add -l to SYNOPSISsevan
2018-06-12Change typ of tilde_ok from int to unsigned int in ksh(1)kamil
UBSan can detect that during switching a login to root there is unportable left shift operation: $ su - Password: /public/src.git/bin/ksh/eval.c:598:13: runtime error: left shift of 1073741824 by 1 places cannot be represented in type 'int' # Sponsored by <The NetBSD Foundation>
2018-06-03ksh: Remove symbol clash with libckamil
Rename local function glob() to ksh_glob(). This is needed for installing interceptors in sanitizers. Sponsored by <The NetBSD Foundation>
2018-06-03ksh: Remove symbol clash with libckamil
Rename local function twalk() to ksh_twak(). This is needed for installing interceptors in sanitizers. Sponsored by <The NetBSD Foundation>
2018-05-08Stop using the register keyword in ksh(1)kamil
ksh also does some strange things with it, like put it in argument lists. No functional change intended. PR bin/53237 ksh: remove register keyword by Nia Alarie
2018-01-24ksh: Rename a local function tsearch to mytsearchkamil
This removes a clash with well-known libc function tsearch(3) from POSIX. This allows to build ksh against MSan. The new name might not be perfect, but long term ksh should be switched to the libc version. Sponsored by <The NetBSD Foundation>
2018-01-24ksh: Rename a local function tdelete to mytdeletekamil
This removes a clash with well-known libc function tdelete(3) from POSIX. This allows to build ksh against MSan. The new name might not be perfect, but long term ksh should be switched to the libc version. Sponsored by <The NetBSD Foundation>
2018-01-17Use 0600 as the mode for histfile here too.maya
pointed out by John D. Baker in PR bin/52480
2017-07-01Kill enough K&R cruft to build with clang again.joerg
2017-06-30ksh: Eliminate dead function x_complete_word()kamil
2017-06-30ksh: Eliminate dead code from expand.hkamil
2017-06-30ksh: Drop old hack for FreeBSD 1.1.5 and CLK_TCKkamil
2017-06-30ksh: Upgrade to C99 <stdbool.h>kamil
This shell already used C99 functions.
2017-06-30ksh: Eliminate dead MEM_DEBUG sections, there is missing code for itkamil
MEM_DEBUG used to contain malloc(3) debugging facilities.
2017-06-30ksh: Drop support for OSes without POSIX sigaction(2)kamil
2017-06-30ksh: Drop support for OSes that don't map /dev/fdkamil
2017-06-30ksh: Drop old hack fo SunOS 4.1.x (1990-1994)kamil
2017-06-30ksh: Drop support for systems without <sys/stat.h>kamil
In future the order of includes will be normalized with KNF. No functional change intended.
2017-06-30ksh: Drop support for systems with broken <sys/time.h> / <time.h>kamil
2017-06-30ksh: Drop support for systems without POSIX lstat(2)kamil
2017-06-30ksh: Drop support for systems without POSIX <sys/wait.h>kamil
2017-06-30ksh: Drop support for systems with broken times(3)kamil
This fallback code wouldn't work anyway. times(3) is an obsolete interface by getrusage(2) and gettimeofday(2). In future it will be swiched to more modern interfaces. No functional change intended.
2017-06-30ksh: Assume ANSI C prototypeskamil
2017-06-30ksh: Drop support for systems without functional waitpid(2)kamil
2017-06-30ksh: Drop support for systems without POSIX signal routineskamil
2017-06-30ksh: Drop support for systems without implementation of EINTRkamil
These systems weren't handled anyway.
2017-06-30ksh: Drop support for systems without handling shebangkamil
2017-06-30ksh: Drop support for OSes without POSIX typeskamil
Assume available: mode_t, off_t, pid_t, uid_t, rlim_t, sigset_t.
2017-06-30ksh: Drop support for systems without <sys/wait.h>kamil
2017-06-30ksh: Drop ksh_wait.h that reinvents <sys/wait.h> (POSIX header)kamil
Switch jobs.c to <sys/wait.h>. No functional change intended.
2017-06-30ksh: Drop support for systems without gid_tkamil
2017-06-23ksh: Drop support for systems without clock_t typekamil
2017-06-23ksh: Replace homegrown int_least32_t with the C99 versionkamil
2017-06-23ksh: Drop support for systems that return void for closedir(2)kamil