CodingGuidelines: mention whitespace preferences for shell scripts
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Giuseppe Bilotta committed
Dec 3, 2010 at 17:47 UTC
f36a4fa8ef611c37c890ed21a388a5ece801a3de
1 file changed
+4
Documentation/CodingGuidelines
+4
@@ -31,6 +31,10 @@ But if you must have a list of rules, here they are.
31
32
For shell scripts specifically (not exhaustive):
33
34
+ - We use tabs for indentation.
35
+
36
+ - Case arms are indented at the same depth as case and esac lines.
37
+
38
- We prefer $( ... ) for command substitution; unlike ``, it
39
properly nests. It should have been the way Bourne spelled
40
it from day one, but unfortunately isn't.