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.html25
1 files changed, 25 insertions, 0 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 22593a8c..c11d5840 100644
--- a/gemfeed/2021-05-16-personal-bash-coding-style-guide.html
+++ b/gemfeed/2021-05-16-personal-bash-coding-style-guide.html
@@ -25,6 +25,31 @@
"\__/"---------------"\__/"-+---+'
</pre>
<br />
+<h2 style='display: inline' id='table-of-contents'>Table of Contents</h2><br />
+<br />
+<ul>
+<li><a href='#personal-bash-coding-style-guide'>Personal Bash coding style guide</a></li>
+<li>⇢ <a href='#introduction'>Introduction</a></li>
+<li>⇢ <a href='#my-modifications'>My modifications</a></li>
+<li>⇢ ⇢ <a href='#shebang'>Shebang</a></li>
+<li>⇢ ⇢ <a href='#two-space-soft-tabs-indentation'>Two space soft-tabs indentation</a></li>
+<li>⇢ ⇢ <a href='#breaking-long-pipes'>Breaking long pipes</a></li>
+<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='#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>
+<li>⇢ ⇢ <a href='#paranoid-mode'>Paranoid mode</a></li>
+<li>⇢ <a href='#learned'>Learned</a></li>
+<li>⇢ ⇢ <a href='#unintended-lexicographical-comparison'>Unintended lexicographical comparison.</a></li>
+<li>⇢ ⇢ <a href='#pipestatus'>PIPESTATUS</a></li>
+<li>⇢ <a href='#use-common-sense-and-be-consistent'>Use common sense and BE CONSISTENT.</a></li>
+<li>⇢ <a href='#advanced-bash-learning-pro-tip'>Advanced Bash learning pro tip</a></li>
+</ul><br />
+<h2 style='display: inline' id='introduction'>Introduction</h2><br />
+<br />
<span>Lately, I have been polishing and writing a lot of Bash code. Not that I never wrote a lot of Bash, but now as I also looked through the Google Shell Style Guide, I thought it is time also to write my thoughts on that. I agree with that guide in most, but not in all points. </span><br />
<br />
<a class='textlink' href='https://google.github.io/styleguide/shellguide.html'>Google Shell Style Guide</a><br />