summaryrefslogtreecommitdiff
path: root/bin/ksh/c_sh.c
AgeCommit message (Collapse)Author
2006-04-10fix lint comments, no functional changes; ok rayJared Yanovich
2006-03-21Partially revert last commit; jaredy@ showed the NULL deref can'tOtto Moerbeek
happen and tedu@ confirmed this is a known bug in Coverity's analysis.
2006-03-20Fix potential null deref and out-of-bound access.Otto Moerbeek
ok millert@ deraadt@
2006-03-12might as well make ksh_getopt() match real getopt(), ie. get rid of thatTheo de Raadt
stupid EOF concept that was never true. adobriyan@gmail
2005-10-08Silence bogus gcc warning.Otto Moerbeek
2005-10-06Introducing mknod as a built-in. It might be against the unixOtto Moerbeek
philosophy, but in this case it's worth it. ok deraadt@
2005-03-30lots of indentation cleanup, now ksh is readable like our other code.Theo de Raadt
double checked to make sure no binaries change, and eyed by niallo
2005-02-02Introduce POSIX hex and octal (0x... and 0...) constants in arithmeticOtto Moerbeek
expressions. Work by Matthias Kilian, based on an old diff by myself. Note: MAKEDEV should be updated. Tested by many, thanks. ok millert@ deraadt@
2004-12-28ansi. No binary change.Jonathan Gray
2004-12-22Fix a use-after-free, that causs core dumps if a shell is killedOtto Moerbeek
running with strict malloc.conf options. Problem spotted by hshoexer@; fix by me with some help from millert@. ok millert@ hshoexer@ krw@ deraadt@
2004-12-22Our times(3) just calls getrusage(2) and gettimeofday(2), converting secondsTodd C. Miller
to ticks. Since ksh needs things in seconds it then converted them back. Avoid the silliness and use the getrusage(2) and gettimeofday(2) directly. With man page help from jmc@
2004-12-22Use stdbool.h instead of rolling our own bools.Todd C. Miller
2004-12-20Ansification plus some minor knf. No binary change on i386 andOtto Moerbeek
sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
2004-12-19umask returns mode_t, not intTodd C. Miller
2004-12-18Replace fd_clexec() with calls to fcntl(fd, F_SETFD, FD_CLOEXEC)Todd C. Miller
2004-12-18deregisterTodd C. Miller
2004-12-18Get rid of #ifdef KSH since we don't care about building a V7 style sh andTodd C. Miller
the #ifdef KSH code is required to make a POSIX sh. From Matthias Kilian
2004-12-18Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.Todd C. Miller
First step in making the ksh code easier to read. From Matthias Kilian
2003-03-13a few strcpy -> strlcpy; a couple people have mailed in a variety ofTheo de Raadt
patches, and i already had this sitting on my laptop at that time.. i used that as a chance to note that we had all done the same work, more or less
2003-02-28typos; from Brian PooleJason McIntyre
2003-01-04spellingTheo de Raadt
2002-06-09knfTodd T. Fries
1999-07-14pdksh-5.2.14Todd C. Miller
1999-06-15patches from pdksh 5.2.13.11Todd C. Miller
1999-01-10sync with pdksh-unstable-5.2.13.6Todd C. Miller
1999-01-10Fix bug in c_sh.c where an unitialized variable could be used.Todd C. Miller
Bug found by fgsch@openbsd.org. Patch mailed to pdksh maintainer.
1999-01-08bug fixes from pdksh-unstable-5.2.13.5; some of which we already had.Todd C. Miller
1998-10-29Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions ofTodd C. Miller
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...
1998-06-25pdksh-5.2.13 + local changesTodd C. Miller
1997-08-05Fixes for a variety of pdksh problems:grr
1) pkksh in sh mode closed fd's other than [012] on exec'ing a command. this is a ksh'ism and POSIX sates that open files are part of the environment to be passed to the new process. 2) pdksh in sh mode interpets (( as meaning the start of arithmetic "quoting", which is incompatible with it's usage as a nested sub-shell invocation. The $(( form for arithmetic substitution is stil valid, however. PR user/59 millert@openbsd.org (Todd C. Miller) 3) pdksh sh.1 manpage isn't explicit about the range of input text that is subject to field splitting after a substitution. PR user/236 Mathieu.Herrb@mipnet.fr (Mathiew Herrb)
1997-06-19back outkstailey
1997-06-18(foo *)0 -> NULLkstailey
1996-10-13Update to version 5.2.11.Jason Downs
1996-08-19update to pdksh-5.2.8Jason Downs
1996-08-14Import pdksh 5.2.7.Jason Downs