summaryrefslogtreecommitdiff
path: root/gemfeed/2021-05-16-personal-bash-coding-style-guide.html
diff options
context:
space:
mode:
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.html4
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 &#39;yes&#39; and &#39;no&#39;</a></li>
+<li>⇢ ⇢ <a href='#use-of--yes--and--no-'>Use of &#39;yes&#39; and &#39;no&#39;</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 &#39;yes&#39; and &#39;no&#39;</h3><br />
+<h3 style='display: inline' id='use-of--yes--and--no-'>Use of &#39;yes&#39; and &#39;no&#39;</h3><br />
<br />
<span>Bash does not support a boolean type. I tend just to use the strings &#39;yes&#39; and &#39;no&#39; 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&#39;t want to use a Bash script anyway, correct?</span><br />
<br />