Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-06-10 | POSIX specifies that for an AND/OR list, only the last command's | Todd C. Miller | |
exit status matters for "set -e". Revert the part of revision 1.49 that always sets xerrok for AND/OR. This makes sh/ksh pass the updated regress tests. OK espie@ jca@ | |||
2009-01-29 | pass "xerrok" status across the execution call stack to more closely | Jared Yanovich | |
match what both POSIX and ksh.1 already describe in regards to set -e/errexit's behavior in determining when to exit from nonzero return values. specifically, the truth values tested as operands to `&&' and `||', as well as the resulting compound expression itself, along with the truth value resulting from a negated command (i.e. a pipeline prefixed `!'), should not make the shell exit when -e is in effect. issue reported by matthieu. testing matthieu, naddy. ok miod (earlier version), otto. man page ok jmc. | |||
2007-09-05 | Call ERR trap _before_ doing exit handling. Otherwise it's too late | Otto Moerbeek | |
and the ERR trap won't get called at all. ok millert@ | |||
2007-08-02 | another memory leak fix found by coverity. from netbsd but modified. | Federico G. Schwindt | |
millert@ ok. | |||
2006-04-10 | fix lint comments, no functional changes; ok ray | Jared Yanovich | |
2006-03-17 | Simplify savefd() by removing the "noclose" flag and make noclose | Todd C. Miller | |
behavior the default. Almost all uses of savefd() are followed by an implicit or explicit close. OK otto@ | |||
2005-12-11 | fix a few name clashes with libc; found by lint. ok deraadt@ | Otto Moerbeek | |
2005-12-11 | remove unused variables and functions | Theo de Raadt | |
2005-09-11 | Fix " handling in here documents. POSIX says they are not special, so | Otto Moerbeek | |
cat << EOF \" EOF should print \" Fixes PR 4472; testing jmc@ and Adam Montague. ok millert@ | |||
2005-03-30 | lots 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-03-28 | spacing | Theo de Raadt | |
2004-12-22 | Fix a use-after-free, that causs core dumps if a shell is killed | Otto 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-22 | Use stdbool.h instead of rolling our own bools. | Todd C. Miller | |
2004-12-20 | Ansification plus some minor knf. No binary change on i386 and | Otto Moerbeek | |
sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@ | |||
2004-12-19 | spacing | Theo de Raadt | |
2004-12-18 | Replace fd_clexec() with calls to fcntl(fd, F_SETFD, FD_CLOEXEC) | Todd C. Miller | |
2004-12-18 | deregister | Todd C. Miller | |
2004-12-18 | Get rid of #ifdef KSH since we don't care about building a V7 style sh and | Todd C. Miller | |
the #ifdef KSH code is required to make a POSIX sh. From Matthias Kilian | |||
2004-12-18 | Remove 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-12-15 | Unbreak parameter assignment when calling bourne style functions; | Otto Moerbeek | |
resolves PR 2450. ok deraadt@ millert@ | |||
2003-11-10 | If "from fd" == "to fd" don't call dup2() or close "from fd". | Todd C. Miller | |
2003-11-10 | For the >& and <& operators, add a check for "dup from" == "dup to" and | Todd C. Miller | |
just return success if they are the same. Fixes the "ls 2>&2" problem miod@ found. | |||
2003-10-22 | typos from Jared Yanovich; | Jason McIntyre | |
ok deraadt@ | |||
2003-02-28 | typos; from Brian Poole | Jason McIntyre | |
2002-06-09 | knf | Todd T. Fries | |
2002-01-16 | Use the volatile specifier to fix warnings about variables being | Todd C. Miller | |
clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack. | |||
2001-07-19 | Back out last change, it caused problems with exit vals. | Todd C. Miller | |
2001-07-03 | Merge in pdksh-5.2.14-patches.2 to fix some problems with propagated | Todd C. Miller | |
return values in multi-command lines. | |||
2001-02-19 | bash-like 'double-tab' completion | Camiel Dobbelaar | |
- bind TAB (^I) to complete-list by default - complete-list now lists 'ls style' not 'menu style' - complete-list first completes; if that does not work, it lists - fix a memleak in emacs.c, do_complete - completion now works after '=' (dd), and ':' (ssh) and ` (backtick) - a command can now start with a subdir from the current dir | |||
1999-07-15 | silence -Wall | Todd C. Miller | |
1999-07-14 | Official fix for workaround in 1.18 | Todd C. Miller | |
1999-07-14 | pdksh-5.2.14 | Todd C. Miller | |
1999-06-23 | When redirecting to a file with stdout closed, don't blithely reuse | Todd C. Miller | |
fd 1 since that will cause future output on stdout to go to the file that was redirected. There is probably a better fix for this. | |||
1999-06-15 | patches from pdksh 5.2.13.11 | Todd C. Miller | |
1999-01-19 | Updates from pdksh-unstable-5.2.13.7. Most notable change is: | Todd C. Miller | |
trap: exit traps now executed in subshells (without explicit exit call). See the Changelog for a full list of changes. | |||
1999-01-10 | sync with pdksh-unstable-5.2.13.6 | Todd C. Miller | |
1999-01-08 | bug fixes from pdksh-unstable-5.2.13.5; some of which we already had. | Todd C. Miller | |
1998-10-29 | Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions of | Todd 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-27 | new ksh code stupidly did not permit ". /dev/null"; enable that again | Theo de Raadt | |
1998-06-25 | pdksh-5.2.13 + local changes | Todd C. Miller | |
1997-09-12 | Avoid longjmp/vfork clobbering. | Todd C. Miller | |
1997-06-19 | back out | kstailey | |
1997-06-18 | (foo *)0 -> NULL | kstailey | |
1997-01-02 | After discussing $_ with the maintainer, revert ksh behaviour and completely | Jason Downs | |
eliminate it from sh. | |||
1997-01-02 | Add FSH (set -o sh), initialize it if we're /bin/sh, and add the first use: | Jason Downs | |
don't set $_ if we're non-interactive. | |||
1996-11-21 | Update to 5.2.12. | Jason Downs | |
1996-10-01 | Integrate pdksh 5.2.9. | Jason Downs | |
1996-08-25 | Fix problems with compiling without KSH defined, add NOEDIT override. | Jason Downs | |
1996-08-19 | update to pdksh-5.2.8 | Jason Downs | |
1996-08-14 | Import pdksh 5.2.7. | Jason Downs | |