summaryrefslogtreecommitdiff
path: root/bin/sh/main.c
AgeCommit message (Expand)Author
2023-04-07The great shell trailing whitespace cleanup of 2023...kre
2022-09-18Add the -l option (aka -o login): be a login shell. Meaningful only onkre
2021-10-26Use a type-correct end marker for strstrcat() rather than NULL, askre
2021-10-26PR bin/56464kre
2021-09-15Improve the solution for the 2nd access to a fd which shouldn'tkre
2020-02-07bin/sh: Fixes -Werror=shadow causing build breaks.fox
2020-02-06Actually, the issue with bash (in previous) is more likely that thekre
2020-02-06If we are invoked with SIGCHLD ignored, we fail badly, as we assumekre
2019-02-09When an interactive shell exits due to an EOF on stdin, send a newlinekre
2019-02-04PR bin/53919kre
2019-01-19When we exit from running off the end of the input file (whichkre
2018-12-11PR standards/42829kre
2018-12-03Cleanup traps a bit - attempt to handle weird uses in traps, suchkre
2018-12-03When forking a child shell, arrange for errors/exit to always unwindkre
2018-08-22Fix (hopefully) the problem reported on current-users by Patrick Welche.kre
2018-08-19PR bin/48875 (is related, and ameliorated, but not exactly "fixed")kre
2018-08-19PR bin/48875kre
2018-01-23drop main() prototypesevan
2017-07-05DEBUG only changes. Convert the TRACE() calls in the remaining fileskre
2017-06-19Correct the initial line number used for processing -c arg strings.kre
2017-05-29More DEBUG mode changes. As usual, read the source if you care.kre
2017-05-18NFC: added a minor comment (and enev then, in DEBUG code only)kre
2017-04-22Keep track of the biggest fd used by, or available to, the user/scriptkre
2016-05-09PR bin/48875 - avoid holding (replaced) file descriptors open when running akre
2016-05-09Revert previous. These changes are intended to get made (and willkre
2016-05-09Finish the fd reassignment fixes from 1.43 and 1.45 ... if we are movingkre
2016-03-31Implement the NETBSD_SHELL readonly unexportable unimportablechristos
2016-03-27General KNF and source code cleanups, avoid scattering thechristos
2016-03-01Fix wrong condition in previous causing bogus 'Use "exit" to leavemartin
2016-02-29Complete implementation of the noexec option (-n) includingchristos
2016-02-27Improve debugging, from kre (I hooked it to the build).christos
2015-05-26Drop privileges when executed set{u,g}id unless -p is specified like otherchristos
2014-05-31PR/48843: Jarmo Jaakkola: dot commands mess up scope nesting trackingchristos
2011-06-18PR/45069: Henning Petersen: Use prototypes from builtins.h .christos
2010-02-21fix faulty logic in previous change.christos
2010-02-20default to the original behavior for $ENV unless POSIXLY_CORRECT is set.christos
2010-02-17PR/42828: Richard Hansen: Don't evaluate ${ENV} if not interactive.christos
2009-01-18fix -Wsign-compare issueslukem
2008-10-16Remove unused global variablesdholland
2008-07-20Remove the \n and tabs from the __COPYRIGHT() strings.lukem
2005-10-10PR/31548: Alexander Rigbo: $PWD not set when shell starts up, before pwdchristos
2005-07-15Only do certain actions when we are trully interactive, not just when wechristos
2003-09-14Fix crash when DEBUG=2, by opening the log file ASAP. Reviewed by simonb@.jmmv
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2002-12-11PR/19453: Christopher Richards: Call setlocale() in /bin/shchristos
2002-11-24Fixes from David Laight:christos
2002-09-28Revert previous change. No need to save rootshell. It is only affectingchristos
2002-09-27Deal with rootshell not being maintained correctly in the vfork() case.christos
2002-09-27VFork()ing shell: From elric@netbsd.org:christos
2001-06-11Fix various misspellings of compatible/compatibility.wiz