How To Use set and pipefail in Bash Scripts on Linux
[https://www.howtogeek.com/782514/how-to-use-set-and-pipefail-in-bash-scripts-on-linux/amp/] - - public:mzimmerm
Using Bash as libraries for writing tests
Good guide and doc for Bash arrays. Also clearly states difference between array (indexed array=list) and associative array (keyd array=map)
Shows how to build super complex useful command pipes easily with xargs
Convert string or command output into bash array
Convert a string or command output into bash array variable
This answers newlines in Strings.
Short answer is to always use “$@“ (quoted)