aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-09-10 09:28:39 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-09-10 09:28:39 +0000
commit7405365947915c932279ebb337b95dece726c4e2 (patch)
tree305790360014d4e096aa84f5cc6a651a61bc83ce
parentbbef66a9ae85be9494b8d685afa71c80a9984dd9 (diff)
downloadsrc-7405365947915c932279ebb337b95dece726c4e2.tar.gz
src-7405365947915c932279ebb337b95dece726c4e2.zip
Elaborate on the behaviour of set -e.
Notes
Notes: svn path=/head/; revision=149938
-rw-r--r--bin/sh/sh.19
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 004ee1f98556..be0fb6de1a6e 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -208,13 +208,18 @@ option if it has been set).
.It Fl e Li errexit
Exit immediately if any untested command fails in non-interactive mode.
The exit status of a command is considered to be
-explicitly tested if the command is used to control
-an if, elif, while, or until; or if the command is the left
+explicitly tested if the command is part of the list used to control
+an if, elif, while, or until; if the command is the left
hand operand of an
.Dq Li &&
or
.Dq Li ||
+operator; or if the command is a pipeline preceded by the
+.Ic !\&
operator.
+If a shell function is executed and its exit status is explicitly
+tested, all commands of the function are considered to be tested as
+well.
.It Fl f Li noglob
Disable pathname expansion.
.It Fl I Li ignoreeof