aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorkate.ward <kate.ward@forestent.com>2011-06-10 11:15:05 +0000
committerkate.ward <kate.ward@forestent.com>2011-06-10 11:15:05 +0000
commit8ccc299485e38c9d24a69dd951ba51b95eafbe02 (patch)
tree4fef76be6b3664c8e6452256d2b40bd43b5ec646 /source
parent43e7ca1318332abbaede7f34f44531f0cc783949 (diff)
downloadshflags-8ccc299485e38c9d24a69dd951ba51b95eafbe02.tar.gz
added note about wrapping conditional expressions
Diffstat (limited to 'source')
-rw-r--r--source/1.0/doc/coding_standards.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/1.0/doc/coding_standards.txt b/source/1.0/doc/coding_standards.txt
index 49a9a81..b2904f5 100644
--- a/source/1.0/doc/coding_standards.txt
+++ b/source/1.0/doc/coding_standards.txt
@@ -100,6 +100,12 @@ standard spacing of two characters, and tabs may not be used. ::
echo ${x}
done
+When a conditional expression is written using the builtin [ command, and that
+line must be wrapped, place the control || or && operators on the same line as
+the expression where possible, with the list to be executed on its own line. ::
+
+ [ -n 'some really long expression' -a -n 'some other long expr' ] && \
+ echo 'that was actually true!'
.. vim:spell
.. $Id$