summaryrefslogtreecommitdiff
path: root/bin/ksh/c_sh.c
AgeCommit message (Expand)Author
2023-09-14sh(1), ksh(1): reimplement p_tv() with p_ts()Scott Soule Cheloha
2020-05-22Fix the exit code when eval()uating a || compound list, it wouldSebastian Benoit
2018-04-09Support 64 bit integers on 32 bit architectures.Tobias Stoeckmann
2017-12-27Add -Wshadow to Makefile and fix the resulting warnings. Many ofTodd C. Miller
2017-12-07Drop the unused second argument from set_prompt(). It used to be used forTheo Buehler
2017-07-22Use monotonic clock for the time command in csh and ksh.anton
2016-03-04remove CSRG BSD-licensed mknod builtin code which was previously used toTheo de Raadt
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-12-14Remove a superfluous macro. No binary change. ok tb@mmcc
2015-11-12Use isdigit() instead of ksh's homebrewed alternative.mmcc
2015-11-01Add uses of areallocarray(). mksh and Bitrig ksh already have similarmmcc
2015-10-21Don't bother casting NULL.mmcc
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-10ksh can run with pledge "stdio rpath wpath cpath getpw fattr proc exec tty"Theo de Raadt
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-07-20Zero-pad the seconds in the output of 'time' to make columns line upPhilip Guenther
2014-08-27promote "times" to posix special built-in;Jason McIntyre
2013-09-04Add a proper suspend builtin that saves/restores the tty and pgrpTodd C. Miller
2013-04-19handle long long time_tTheo de Raadt
2013-03-20Remove bogus #if 0'd code. As the comment says, POSIX doesn't need this.Todd C. Miller
2010-03-27`b' and `c' arguments to mknod are not optional; from LEVAI DanielJason McIntyre
2009-05-05Fix usage string for mknod builtin.Todd C. Miller
2009-01-29pass "xerrok" status across the execution call stack to more closelyJared Yanovich
2008-07-23fix stack abuse in the `time' commmand, using alloc()'d memory instead.Jared Yanovich
2007-09-03Unsetting a non-existent variable is not an error. SeeOtto Moerbeek
2007-08-02fix memory leaks and one potential null deref found by coverity. from netbsd.Federico G. Schwindt
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
2006-03-20Fix potential null deref and out-of-bound access.Otto Moerbeek
2006-03-12might as well make ksh_getopt() match real getopt(), ie. get rid of thatTheo de Raadt
2005-10-08Silence bogus gcc warning.Otto Moerbeek
2005-10-06Introducing mknod as a built-in. It might be against the unixOtto Moerbeek
2005-03-30lots of indentation cleanup, now ksh is readable like our other code.Theo de Raadt
2005-02-02Introduce POSIX hex and octal (0x... and 0...) constants in arithmeticOtto Moerbeek
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
2004-12-22Our times(3) just calls getrusage(2) and gettimeofday(2), converting secondsTodd C. Miller
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-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
2004-12-18Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.Todd C. Miller
2003-03-13a few strcpy -> strlcpy; a couple people have mailed in a variety ofTheo de Raadt
2003-02-28typos; from Brian PooleJason McIntyre