summaryrefslogtreecommitdiffstats
path: root/bin/ksh/syn.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Keep the time pipeline's stack in tactkn2018-04-241-4/+8
| | | | | | | | | | Revision 1.28 (2008) fixed stack abuse by allocating a new one and effectively clearing it. This broke pipelines such as $ time for i in . ; do : ; done /bin/ksh: : is read only Prompted by tb, OK millert, tb, jca
* rename global "e" to genv to avoid accidental shadowing and aliasing.tedu2015-12-301-4/+4
| | | | ok millert nicm tb
* Add uses of areallocarray(). mksh and Bitrig ksh already have similarmmcc2015-11-011-7/+7
| | | | | | functions. With help from Theo Buehler. ok nicm@
* Move string.h include from sh.h to the files that use it.mmcc2015-10-191-1/+3
| | | | ok nicm@
* Remove three distracting aliases for NULL.mmcc2015-10-151-10/+10
| | | | ok nicm@
* Drop the silly and distracting ACCEPT and REJECT macros, from Michaelnicm2015-10-061-26/+24
| | | | McConville. No binary change. ok millert tedu
* Last of the (thing *)0 -> NULL, from Michael McConville. No binarynicm2015-09-181-4/+4
| | | | change.
* Remove unnecessary casts, from Michael McConville. No binary change.nicm2015-09-171-5/+5
|
* correct spelling of NULL from (char *)0. from Michael McConville.tedu2015-09-151-16/+16
| | | | ok md5
* remove casts and null checks before free. from Michael McConvilletedu2015-09-011-3/+3
| | | | ok deraadt
* for var in; do ... shouldn't be interpreted as for var; do ...jca2013-06-031-8/+3
| | | | | | Fix by returning an empty token list instead of NULL to consumers. Brings base ksh more in line with POSIX.
* fix stack abuse in the `time' commmand, using alloc()'d memory instead.jaredy2008-07-231-1/+6
| | | | | | reported by Thorsten Glaser, thanks. ok millert@, earlier version miod@
* fix lint comments, no functional changes; ok rayjaredy2006-04-101-2/+2
|
* Revert for the moment, according to Mike Belopuhov this producesotto2006-03-211-3/+2
| | | | errors in rc and netstart.
* Fix potential null deref and out-of-bound access.otto2006-03-201-2/+3
| | | | ok millert@ deraadt@
* remove excessive optimization; from adobriyan@gmail; ok teduderaadt2006-03-141-7/+5
|
* fix a few name clashes with libc; found by lint. ok deraadt@otto2005-12-111-3/+3
|
* lots of indentation cleanup, now ksh is readable like our other code.deraadt2005-03-301-49/+49
| | | | double checked to make sure no binaries change, and eyed by niallo
* spacingderaadt2005-03-281-4/+4
|
* Use stdbool.h instead of rolling our own bools.millert2004-12-221-38/+38
|
* Ansification plus some minor knf. No binary change on i386 andotto2004-12-201-83/+51
| | | | | sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
* remove GCC_FUNC_ATTR/GCC_FUNC_ATTR2 and just use __attribute__ directlymillert2004-12-181-4/+3
| | | | (we define it away in sys/cdefs.h if it is not supported).
* deregistermillert2004-12-181-22/+22
|
* Get rid of #ifdef KSH since we don't care about building a V7 style sh andmillert2004-12-181-15/+1
| | | | the #ifdef KSH code is required to make a POSIX sh. From Matthias Kilian
* Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.millert2004-12-181-30/+29
| | | | First step in making the ksh code easier to read. From Matthias Kilian
* typos from Jared Yanovich;jmc2003-10-221-2/+2
| | | | ok deraadt@
* knftodd2002-06-091-2/+2
|
* patches from pdksh 5.2.13.11millert1999-06-151-1/+5
|
* Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions ofmillert1998-10-291-4/+13
| | | | | | | | | | | | | | | | | | some that we had already fixed locally. o typeset -f FUNC doesn't print follows command (and expression) substitutions. o when re-allocating memory, too much may be copied from old memory. o set -o printed some options sans names. o emacs mode: <esc>. in very fist command causes core dump. o pdksh dumps core after a cd command. o typeset -i reports on array elements that have no value (at&t ksh reports on array base name - no index). o ulimit -ctn unlimittttted kills shell (resource exceeded). o ". /dev/null" says access denied. o flag field in aliases incorrectly changed (all flags set instead of clearing ISSET) in exec.c(flushcom). o ${#array[*]} prints largest index instead of number of (set) elements in an array (ksh88 does the former). o sys_siglist[] doesn't always have NSIG non-null entries...
* Initialize the correct fields when creating an empty command. Fixes bug where amillert1998-10-091-5/+5
| | | | | function with no body ( e.g. "testfun () ;" ) would cause ksh to segfault when it was called. Eric Haszlakiewicz <erh@netbsd.org>
* pdksh-5.2.13 + local changesmillert1998-06-251-103/+89
|
* i am bored enough to fix terminal space/tab ugliesderaadt1997-09-011-2/+2
|
* back outkstailey1997-06-191-20/+20
|
* (foo *)0 -> NULLkstailey1997-06-181-20/+20
|
* Update to 5.2.12.downsj1996-11-211-2/+8
|
* Update to version 5.2.11.downsj1996-10-131-2/+14
|
* Integrate pdksh 5.2.9.downsj1996-10-011-2/+4
|
* update to pdksh-5.2.8downsj1996-08-191-6/+7
|
* Import pdksh 5.2.7.downsj1996-08-141-0/+927