From: Zbigniew Jędrzejewski-Szmek Date: Sun, 5 Feb 2023 21:04:45 +0000 (+0100) Subject: docs/CODING_STYLE: add sentence about redirection operators X-Git-Tag: v253-rc3~39^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F26320%2Fhead;p=thirdparty%2Fsystemd.git docs/CODING_STYLE: add sentence about redirection operators --- diff --git a/docs/CODING_STYLE.md b/docs/CODING_STYLE.md index 516207071bb..9a355835368 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`, `<