We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd30800 commit 79fc3caCopy full SHA for 79fc3ca
Documentation/CodingGuidelines
@@ -42,7 +42,17 @@ For shell scripts specifically (not exhaustive):
42
43
- We use tabs for indentation.
44
45
- - Case arms are indented at the same depth as case and esac lines.
+ - Case arms are indented at the same depth as case and esac lines,
46
+ like this:
47
+
48
+ case "$variable" in
49
+ pattern1)
50
+ do this
51
+ ;;
52
+ pattern2)
53
+ do that
54
55
+ esac
56
57
- Redirection operators should be written with space before, but no
58
space after them. In other words, write 'echo test >"$file"'
0 commit comments