Browse Source

Merge branch 'jc/allow-strlen-substitution-in-shell-scripts'

Coding guideline update.

* jc/allow-strlen-substitution-in-shell-scripts:
  CodingGuidelines: allow ${#posix} == strlen($posix)
maint
Junio C Hamano 5 years ago
parent
commit
7d28d69174
  1. 2
      Documentation/CodingGuidelines

2
Documentation/CodingGuidelines

@ -91,8 +91,6 @@ For shell scripts specifically (not exhaustive): @@ -91,8 +91,6 @@ For shell scripts specifically (not exhaustive):

- No shell arrays.

- No strlen ${#parameter}.

- No pattern replacement ${parameter/pattern/string}.

- We use Arithmetic Expansion $(( ... )).

Loading…
Cancel
Save