summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-06-23 16:23:26 -0400
committerbnewbold <bnewbold@robocracy.org>2017-06-23 16:23:26 -0400
commitbbdf128cc15cf0ad3ca6a413fc015efd485a2a95 (patch)
treec9b07ad213bd56cdae0ba638448d6f54543b7f77
parentc160bf24f14957a1d65ee2342c3e5d6d321e159b (diff)
downloadknowledge-bbdf128cc15cf0ad3ca6a413fc015efd485a2a95.tar.gz
knowledge-bbdf128cc15cf0ad3ca6a413fc015efd485a2a95.zip
bash: pipefail note
-rw-r--r--software/bash.page10
1 files changed, 10 insertions, 0 deletions
diff --git a/software/bash.page b/software/bash.page
index f9eeb8c..0a3f73f 100644
--- a/software/bash.page
+++ b/software/bash.page
@@ -31,3 +31,13 @@ the virtual devices ``/dev/tcp/HOSTNAME/PORT`` and ``/dev/udp/HOSTNAME/PORT``.
printf
------
The ``printf`` command is much more powerful than "echo".
+
+Prelude
+-------
+
+`set`:
+
+ -e fail on error
+ -u fail if variable not set in substitution
+ -o pipefail fail if part of a '|' command fails
+