aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/or.txt
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-04 09:15:17 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-04 09:15:17 +1000
commit6fd69bdda8b4d185fb636047ab8914989fc66252 (patch)
tree50883b516a46dec263490a0b20fb6319689e4956 /doc_src/or.txt
parenta85f4cc1c48052487b2c258cb01748597be927a5 (diff)
Many minor edits and clarifications to the documentation, including comments about the exit status of a few commands
darcs-hash:20060603231517-ac50b-03d252516eef21d4dd3a2ba0f5bb68e82525213b.gz
Diffstat (limited to 'doc_src/or.txt')
-rw-r--r--doc_src/or.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc_src/or.txt b/doc_src/or.txt
index d84e8286..8ac3c3a2 100644
--- a/doc_src/or.txt
+++ b/doc_src/or.txt
@@ -8,10 +8,16 @@
The \c or builtin is used to execute a command if the current exit status (as set by the last previous command) is non-zero
+The or command does not change the current exit status.
+
\subsection or-example Example
-The following code runs the \c make command to build a program, or if it fails, it runs <tt>make clean</tt>, which removes the files created by the build process
+The following code runs the \c make command to build a program, if the
+build succceds, the program is installed. If either step fails,
+<tt>make clean</tt> is run, which removes the files created by the
+build process
+
<pre>
-make; or make clean
+make; and make install; or make clean
</pre>