Commit Graph

26 Commits

Author SHA1 Message Date
mlelstv 6883e45b87 Fix FALLTHROUGH comments. 2019-09-26 11:01:09 +00:00
kamil d6d5f49c60 Change typ of tilde_ok from int to unsigned int in ksh(1)
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-12 14:13:55 +00:00
kamil b9cf72ac86 ksh: Remove symbol clash with libc
Rename local function glob() to ksh_glob().
This is needed for installing interceptors in sanitizers.

Sponsored by <The NetBSD Foundation>
2018-06-03 16:09:31 +00:00
kamil 0f2b5450fb Stop using the register keyword in ksh(1)
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-05-08 16:37:59 +00:00
kamil dd8a75d57f ksh: Upgrade to C99 <stdbool.h>
This shell already used C99 functions.
2017-06-30 04:41:19 +00:00
kamil fac4b39487 ksh: Drop support for systems without <sys/stat.h>
In future the order of includes will be normalized with KNF.

No functional change intended.
2017-06-30 03:56:12 +00:00
kamil 51ebc97c9d ksh: Drop support for systems without handling shebang 2017-06-30 02:06:59 +00:00
kamil eb13ce8ce3 Reapply removal of code from 90ties for OS/2 Cygwin AIX HPUX SCOUnix
Added missing #endif terminator in emacs.c
2017-06-22 14:20:46 +00:00
kamil 266bea007e Temporarily revert previous.
emacs.* gets wrong code in generation
2017-06-22 14:11:27 +00:00
kamil e5604d4f02 Remove os2 support in ksh(1)
OK by <kre>
2017-06-22 13:33:39 +00:00
joerg acfe9a7761 Add explicit char cast to show that the value change is intended. 2016-10-04 15:09:03 +00:00
christos 3dd8ce9f5e Fixed unused warnings. 2013-10-18 19:53:34 +00:00
dholland 0a54ac30f5 Requires stdint.h. 2011-08-21 21:24:34 +00:00
christos 0fa1334129 kill gcc-4.5 hack. 2011-08-14 10:40:25 +00:00
seanb b0a8c7deed Back out fix for PR 22846 as it has issues. See PR 22846 for details. 2009-11-24 16:00:42 +00:00
lukem 7ca13b8bcd Fix most of the -Wsign-compare issues. 2009-04-25 05:11:37 +00:00
cbiere 622f4b424e Applied patch by Arto Huusko from PR bin/24753 to append a slash to "."
and ".." instead of skipping over them fixing completion for patterns
like ".*" and "..*".
2007-01-28 22:30:12 +00:00
cbiere 26a246a095 * Escape '?', '[', ']' like other meta characters.
* Partial fix for completion when '[' is in the way.
 * Addresses PR bin/22846.
2007-01-28 20:20:25 +00:00
cbiere ecc8aad21d Committed patch from PR bin/34755: Append a slash when expanding ~user
to user's home directory.
2007-01-28 20:01:02 +00:00
christos 4f633ea02a Coverity CID 3368: Fix memory leak. 2006-05-13 21:48:00 +00:00
mrg 084c052803 quell GCC 4.1 uninitialised variable warnings.
XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
2006-05-10 21:53:14 +00:00
mycroft f662a744b6 Cleanup of ksh memory handling from OpenBSD, via Stefan Krueger in PR 24962.
Should also fix:
PR 8153
PR 13301
PR 15256
PR 25084
2004-07-07 19:20:09 +00:00
agc 6377cac711 Add NetBSD RCS Ids. 2003-06-23 11:38:51 +00:00
hubertf 48ee8d1290 resolve conflicts 1999-10-20 15:09:58 +00:00
tls 2ab2e20cff RCS ID Police 1997-01-12 19:11:37 +00:00
jtc e1b2664cf1 import pdksh 5.2.8 1996-09-21 23:35:13 +00:00