Skip to content

Commit f36a4fa

Browse files
Oblomovgitster
authored andcommitted
CodingGuidelines: mention whitespace preferences for shell scripts
Signed-off-by: Giuseppe Bilotta <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3bae8d4 commit f36a4fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/CodingGuidelines

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ But if you must have a list of rules, here they are.
3131

3232
For shell scripts specifically (not exhaustive):
3333

34+
- We use tabs for indentation.
35+
36+
- Case arms are indented at the same depth as case and esac lines.
37+
3438
- We prefer $( ... ) for command substitution; unlike ``, it
3539
properly nests. It should have been the way Bourne spelled
3640
it from day one, but unfortunately isn't.

0 commit comments

Comments
 (0)