summaryrefslogtreecommitdiff
path: root/doc/bash.1
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2012-01-09 08:25:50 -0500
committerChet Ramey <chet.ramey@case.edu>2012-01-09 08:25:50 -0500
commit15825757689105a6873e59681d1e3a202cd1e105 (patch)
treea8febb8aa3144c15f9505716e10e84364a4c3d97 /doc/bash.1
parentf308cbc4f2aee0a75a760216beee2c1eedba394d (diff)
downloadbash-15825757689105a6873e59681d1e3a202cd1e105.tar.gz
commit bash-20110819 snapshot
Diffstat (limited to 'doc/bash.1')
-rw-r--r--doc/bash.123
1 files changed, 14 insertions, 9 deletions
diff --git a/doc/bash.1 b/doc/bash.1
index 2b7a9b90..6c889d04 100644
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -5,12 +5,12 @@
.\" Case Western Reserve University
.\" chet@po.cwru.edu
.\"
-.\" Last Change: Thu Jul 28 18:11:21 EDT 2011
+.\" Last Change: Tue Aug 16 20:43:02 EDT 2011
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
-.TH BASH 1 "2011 July 28" "GNU Bash 4.2"
+.TH BASH 1 "2011 August 16" "GNU Bash 4.2"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
@@ -689,8 +689,9 @@ Expressions are composed of the primaries described below under
.SM
.BR "CONDITIONAL EXPRESSIONS" .
Word splitting and pathname expansion are not performed on the words
-between the \fB[[\fP and \fB]]\fP; tilde expansion, parameter and
-variable expansion, arithmetic expansion, command substitution, process
+between the \fB[[\fP and \fB]]\fP; tilde expansion,
+parameter and variable expansion,
+arithmetic expansion, command substitution, process
substitution, and quote removal are performed.
Conditional operators such as \fB\-f\fP must be unquoted to be recognized
as primaries.
@@ -8499,13 +8500,14 @@ immediately, rather than before the next primary prompt. This is
effective only when job control is enabled.
.TP 8
.B \-e
-Exit immediately if a \fIpipeline\fP (which may consist of a single
-\fIsimple command\fP), a \fIsubshell\fP command enclosed in parentheses,
-or one of the commands executed as part of a command list enclosed
-by braces (see
+Exit immediately if a
+\fIpipeline\fP (which may consist of a single \fIsimple command\fP),
+a \fIlist\fP,
+or a \fIcompound command\fP
+(see
.SM
.B SHELL GRAMMAR
-above) exits with a non-zero status.
+above), exits with a non-zero status.
The shell does not exit if the
command that fails is part of the command list immediately following a
.B while
@@ -8525,6 +8527,9 @@ any command in a pipeline but the last,
or if the command's return value is
being inverted with
.BR ! .
+If a compound command other than a subshell
+returns a non-zero status because a command failed
+while \fB\-e\fP was being ignored, the shell does not exit.
A trap on \fBERR\fP, if set, is executed before the shell exits.
This option applies to the shell environment and each subshell environment
separately (see