diff options
| author | Paul Buetow <paul@buetow.org> | 2024-08-25 23:17:19 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-08-25 23:17:19 +0300 |
| commit | fd3e1f9b498f7f381d505f875dceaa8b9878f756 (patch) | |
| tree | a963ef58ab938f38e90a8710f5e374f86c46d7c9 /gemfeed/2021-05-16-personal-bash-coding-style-guide.html | |
| parent | 156b8953794159bcf395bef4f0fea2d28a874356 (diff) | |
Update content for html
Diffstat (limited to 'gemfeed/2021-05-16-personal-bash-coding-style-guide.html')
| -rw-r--r-- | gemfeed/2021-05-16-personal-bash-coding-style-guide.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gemfeed/2021-05-16-personal-bash-coding-style-guide.html b/gemfeed/2021-05-16-personal-bash-coding-style-guide.html index c11d5840..16ac95c4 100644 --- a/gemfeed/2021-05-16-personal-bash-coding-style-guide.html +++ b/gemfeed/2021-05-16-personal-bash-coding-style-guide.html @@ -37,7 +37,7 @@ <li>⇢ ⇢ <a href='#quoting-your-variables'>Quoting your variables</a></li> <li>⇢ ⇢ <a href='#prefer-built-in-commands-over-external-commands'>Prefer built-in commands over external commands</a></li> <li>⇢ <a href='#my-additions'>My additions</a></li> -<li>⇢ ⇢ <a href='#use-of-yes-and-no'>Use of 'yes' and 'no'</a></li> +<li>⇢ ⇢ <a href='#use-of--yes--and--no-'>Use of 'yes' and 'no'</a></li> <li>⇢ ⇢ <a href='#non-evil-alternative-to-variable-assignments-via-eval'>Non-evil alternative to variable assignments via eval</a></li> <li>⇢ ⇢ <a href='#prefer-pipes-over-arrays-for-list-processing'>Prefer pipes over arrays for list processing</a></li> <li>⇢ ⇢ <a href='#assign-then-shift'>Assign-then-shift</a></li> @@ -189,7 +189,7 @@ http://www.gnu.org/software/src-highlite --> <br /> <h2 style='display: inline' id='my-additions'>My additions</h2><br /> <br /> -<h3 style='display: inline' id='use-of-yes-and-no'>Use of 'yes' and 'no'</h3><br /> +<h3 style='display: inline' id='use-of--yes--and--no-'>Use of 'yes' and 'no'</h3><br /> <br /> <span>Bash does not support a boolean type. I tend just to use the strings 'yes' and 'no' here. I used 0 for false and 1 for true for some time, but I think that the yes/no strings are easier to read. Yes, the Bash script would need to perform string comparisons on every check, but if performance is crucial to you, you wouldn't want to use a Bash script anyway, correct?</span><br /> <br /> |
