diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-09-25 11:25:23 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-09-28 21:33:59 +0200 |
commit | ae6e8c59125c564a272b04609b3642fde8cd096e (patch) | |
tree | 6aad8c3debd6549f142254a1e72175225d69896d | |
parent | ebuild-writing/error-handling: Fix example (diff) | |
download | devmanual-ae6e8c59125c564a272b04609b3642fde8cd096e.tar.gz devmanual-ae6e8c59125c564a272b04609b3642fde8cd096e.tar.bz2 devmanual-ae6e8c59125c564a272b04609b3642fde8cd096e.zip |
ebuild-writing/error-handling: Refer to PIPESTATUS, not its value
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | ebuild-writing/error-handling/text.xml | 14 |
1 files 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 < 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> |