summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-02-05 22:04:45 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-02-06 09:19:04 +0100
commit1e8f5f79e1b6ae2b4115df280c626b71c54a5bb6 (patch)
treefa8ef4395090d2c7d339db7237703a9ecf1335d1 /docs
parent397c27097b224532b54bd25605abd0952a209616 (diff)
downloadsystemd-1e8f5f79e1b6ae2b4115df280c626b71c54a5bb6.tar.gz
docs/CODING_STYLE: add sentence about redirection operators
Diffstat (limited to 'docs')
-rw-r--r--docs/CODING_STYLE.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/CODING_STYLE.md b/docs/CODING_STYLE.md
index 516207071b..9a35583536 100644
--- a/docs/CODING_STYLE.md
+++ b/docs/CODING_STYLE.md
@@ -122,7 +122,8 @@ SPDX-License-Identifier: LGPL-2.1-or-later
- Empty lines to separate code blocks are a good thing, please add them
abundantly. However, please stick to one at a time, i.e. multiple empty lines
- immediately following each other are not OK. Also, we try to keep function calls and their immediate error handling together. Hence:
+ immediately following each other are not OK. Also, we try to keep function
+ calls and their immediate error handling together. Hence:
```c
/* → empty line here is good */
@@ -131,7 +132,9 @@ SPDX-License-Identifier: LGPL-2.1-or-later
if (r < 0)
return log_error_errno(r, "Some function failed: %m");
/* → empty line here is good */
- ```
+
+- In shell scripts, do not use whitespace after the redirection operator
+ (`>some/file` instead of `> some/file`, `<<EOF` instead of `<< EOF`).
## Code Organization and Semantics