NetBSD/bin/sh
mycroft 1ccdf5daeb Make "set -e" once again provide the behavior documented in the man page,
which was unnecessarily changed in revision 1.50 while fixing other bugs.
That is, exit the shell if the last command in a || or && compound statement
is not short-circuited, and exits with a false status.  I.e., the following
will cause the shell to exit:

  set -e
  false || false

While this is not the prescribed behavior in SUSv3, it is what our man page
documents, and it is what all of the following implementations do:

  NetBSD /bin/ksh (pdksh)
  bash
  zsh
  Solaris 9 /bin/sh
  Solaris 9 /usr/xpg4/bin/sh
  Solaris 9 /usr/bin/ksh
  Tru64 /bin/sh
  HP/UX 11 /bin/sh

The "standard" seems to be wrong in this instance.
2004-06-30 09:32:38 +00:00
..
bltin Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
funcs
alias.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
alias.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
arith_lex.l Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
arith.y Drop equal signs from rule definitions; they cause problems with "bison -y". 2003-09-17 17:33:36 +00:00
builtins.def don't include the printf builtin if we are SMALL; saves 10K. 2004-06-06 07:03:11 +00:00
cd.c Posix requires that 'pwd -P' reset the shells saved cwd value - so a 2003-11-14 20:00:28 +00:00
cd.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
error.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
error.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
eval.c Make "set -e" once again provide the behavior documented in the man page, 2004-06-30 09:32:38 +00:00
eval.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
exec.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
exec.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
expand.c Correctly apply IFS to unquoted text in ${x-text}. 2004-06-26 22:09:49 +00:00
expand.h No functional changes (intended). 2004-06-26 14:09:58 +00:00
histedit.c skip a leading `-' on the arg0 name when calling el_init() 2003-10-27 06:19:29 +00:00
init.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
input.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
input.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
jobs.c PR/23786: Robert Nestor: wait command returns the wrong status code. This 2003-12-18 00:56:05 +00:00
jobs.h Generate command line when SMALL is defined and make buffer full sized. 2003-11-27 21:16:14 +00:00
machdep.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
mail.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
mail.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
main.c Fix crash when DEBUG=2, by opening the log file ASAP. Reviewed by simonb@. 2003-09-14 12:09:29 +00:00
main.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
Makefile don't include the printf builtin if we are SMALL; saves 10K. 2004-06-06 07:03:11 +00:00
memalloc.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
memalloc.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
miscbltin.c Correct the description of sbsize; it is parsed in bytes not kbytes. 2004-04-19 01:36:32 +00:00
miscbltin.h remove clause 3 2003-08-21 17:57:53 +00:00
mkbuiltins don't include the printf builtin if we are SMALL; saves 10K. 2004-06-06 07:03:11 +00:00
mkinit.sh Use shell variables to get '(' and '\' inside shell substitution patterns. 2004-06-15 23:09:54 +00:00
mknodes.sh Replace the C program mknodes.c with a shell script mknodes.sh 2004-01-16 23:24:38 +00:00
mktokens Move 4 more files from UCB 4 clause to 3 clause licence. 2003-08-22 11:22:23 +00:00
myhistedit.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
mystring.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
mystring.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
nodes.c.pat Change '\0' to 0 so that the SVR4 'echo' doesn't convert it to a null byte. 2004-06-15 22:57:27 +00:00
nodetypes Move 4 more files from UCB 4 clause to 3 clause licence. 2003-08-22 11:22:23 +00:00
options.c Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
options.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
output.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
output.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
parser.c Fix treatment of ' inside a 'here document' with a quoted EOF marker. 2004-06-27 10:27:57 +00:00
parser.h Correctly apply IFS to unquoted text in ${x-text}. 2004-06-26 22:09:49 +00:00
redir.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
redir.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
sh.1 Fix typo: and the -> and then 2004-06-03 19:54:37 +00:00
shell.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
show.c This seems to need stdlib.h to get a prototype for abort(). 2003-11-14 10:46:13 +00:00
show.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
syntax.c Put a syntax.c under CVS instead of building if with the mksyntax program. 2004-01-17 17:38:12 +00:00
syntax.h Put a syntax.c under CVS instead of building if with the mksyntax program. 2004-01-17 17:38:12 +00:00
TOUR
trap.c Use '\0' instead of NULL in two checks (we are not checking for a pointer 2003-08-26 18:13:25 +00:00
trap.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
var.c Include strings.h, needed for index's prototype. 2003-08-26 18:14:24 +00:00
var.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00