Subject: bin/17514 bin/sh and -e
To: None <,>
From: David Laight <>
List: netbsd-bugs
Date: 01/11/2003 12:45:05
Some related 'features':

- the man page (probably incorrectly) that -e only affects
  non-interactive shells.  The POSIX defn doesn't mention it under
  -e, but refers to a section which says that a non-interactive
  shell should have exited under many of the error cases even if -e
  wasn't set.

- although 'false' will cause the shell to exit, (exit 3) doesn't,
  I suspect there are others.  (pdksh is also broken here, netbsd's
  shell from 1.5.2 does exit).

- syntax errors (eg 'for ;') should also cause the shell to exit.

I'll look into it.


David Laight: