commit:     ae6e8c59125c564a272b04609b3642fde8cd096e
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 25 09:25:23 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Sep 28 19:33:59 2024 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=ae6e8c59

ebuild-writing/error-handling: Refer to PIPESTATUS, not its value

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 ebuild-writing/error-handling/text.xml | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/ebuild-writing/error-handling/text.xml 
b/ebuild-writing/error-handling/text.xml
index 8b7f220..9ae9af9 100644
--- a/ebuild-writing/error-handling/text.xml
+++ b/ebuild-writing/error-handling/text.xml
@@ -112,14 +112,14 @@ while read file ; do eapply ${file} ; done &lt; list
 </section>
 
 <section>
-<title>The <c>assert</c> function and <c>$PIPESTATUS</c></title>
+<title>The <c>assert</c> function and <c>PIPESTATUS</c></title>
 <body>
 
 <p>
-When using pipes, simple conditionals and tests upon <c>$?</c> will not 
correctly
-detect errors occurring in anything except the final command in the chain. To 
get
-around this, <c>bash</c> provides the <c>$PIPESTATUS</c> variable, and Portage
-provides the <c>assert</c> function to check this variable.
+When using pipes, simple conditionals and tests upon <c>$?</c> will not
+correctly detect errors occurring in anything except the final command in
+the chain. To get around this, bash provides the <c>PIPESTATUS</c> variable,
+and Portage provides the <c>assert</c> function to check this variable.
 </p>
 
 <codesample lang="ebuild">
@@ -128,8 +128,8 @@ assert
 </codesample>
 
 <p>
-If you need the gory details of <c>$PIPESTATUS</c>, see the bash manpage. Most 
of the
-time, <c>assert</c> is enough.
+If you need the gory details of <c>PIPESTATUS</c>, see the bash manpage.
+Most of the time, <c>assert</c> is enough.
 </p>
 
 </body>

Reply via email to