[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: if source command.sh & set -e issue
From: |
Martin D Kealey |
Subject: |
Re: if source command.sh & set -e issue |
Date: |
Mon, 29 Jul 2024 15:21:25 +1200 (NZST) |
User-agent: |
Alpine 2.21 (DEB 202 2017-01-01) |
On Wed, 24 Jul 2024, Greg Wooledge wrote:
> Remember how -e is defined:
>
> -e [...] The shell does not exit if the command that fails is [...] any
> command in a pipeline but the last
diff --git a/doc/bash.1 b/doc/bash.1
index cd355a3..266fe35 100644
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -10327,7 +10327,7 @@ reserved words, part of any command executed in a
or
.B ||
list except the command following the final \fB&&\fP or \fB||\fP,
-any command in a pipeline but the last,
+any command in a pipeline but the last (unless \fBpipefail\fP applies),
or if the command's return value is
being inverted with
.BR ! .