summaryrefslogtreecommitdiff
path: root/bin/ksh/exec.c
AgeCommit message (Expand)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2018-03-15Favor usage of __func__ in warning/error messages. Some of them referred to theanton
2018-01-16Introduce internal_warningf() and mark internal_errorf() as noreturnJeremie Courreges-Anglas
2018-01-15Stop pretending we support building ksh without EDIT/HISTORY supportJeremie Courreges-Anglas
2017-12-27Add -Wshadow to Makefile and fix the resulting warnings. Many ofTodd C. Miller
2017-12-18Get rid of a todo by stop declaring variable texec as static and instead zeroinganton
2016-12-11I missed a bit of the indentation fix from Kartik Agaram.Todd C. Miller
2016-12-11When ERREXIT (set -e) is in effect, don't disable it after aTodd C. Miller
2016-12-11In execute() we assign xerrorok to a dummy value if it is NULLTodd C. Miller
2016-12-11Fix for() loop indentation for TCASE in execute() and add someTodd C. Miller
2015-12-30rename global "e" to genv to avoid accidental shadowing and aliasing.Ted Unangst
2015-12-14Move system headers from sh.h to those files that actually need them.tb
2015-11-01Add uses of areallocarray(). mksh and Bitrig ksh already have similarmmcc
2015-10-19Move string.h include from sh.h to the files that use it.mmcc
2015-10-19Apply style(9) to header includes.mmcc
2015-10-17Drop two useless defines.mmcc
2015-10-17Move a system header include from the global header (sh.h) into themmcc
2015-09-22Make errorf() and bi_errorf() handle a NULL argument.Todd C. Miller
2015-09-18Last of the (thing *)0 -> NULL, from Michael McConville. No binaryNicholas Marriott
2015-09-17Remove unnecessary casts, from Michael McConville. No binary change.Nicholas Marriott
2015-09-15correct spelling of NULL from (char *)0. from Michael McConville.Ted Unangst
2015-09-14Replace Tflag typedef with just int; ok teduNicholas Marriott
2015-09-10Replace newline and space defines by "\n" and " " directly, from MichaelNicholas Marriott
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failureTheo de Raadt
2013-06-10POSIX specifies that for an AND/OR list, only the last command'sTodd C. Miller
2009-01-29pass "xerrok" status across the execution call stack to more closelyJared Yanovich
2007-09-05Call ERR trap _before_ doing exit handling. Otherwise it's too lateOtto Moerbeek
2007-08-02another memory leak fix found by coverity. from netbsd but modified.Federico G. Schwindt
2006-04-10fix lint comments, no functional changes; ok rayJared Yanovich
2006-03-17Simplify savefd() by removing the "noclose" flag and make nocloseTodd C. Miller
2005-12-11fix a few name clashes with libc; found by lint. ok deraadt@Otto Moerbeek
2005-12-11remove unused variables and functionsTheo de Raadt
2005-09-11Fix " handling in here documents. POSIX says they are not special, soOtto Moerbeek
2005-03-30lots of indentation cleanup, now ksh is readable like our other code.Theo de Raadt
2005-03-28spacingTheo de Raadt
2004-12-22Fix a use-after-free, that causs core dumps if a shell is killedOtto Moerbeek
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
2004-12-19spacingTheo de Raadt
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
2004-12-18Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.Todd C. Miller
2003-12-15Unbreak parameter assignment when calling bourne style functions;Otto Moerbeek
2003-11-10If "from fd" == "to fd" don't call dup2() or close "from fd".Todd C. Miller
2003-11-10For the >& and <& operators, add a check for "dup from" == "dup to" andTodd C. Miller
2003-10-22typos from Jared Yanovich;Jason McIntyre
2003-02-28typos; from Brian PooleJason McIntyre
2002-06-09knfTodd T. Fries
2002-01-16Use the volatile specifier to fix warnings about variables beingTodd C. Miller