Assigning default values to shell variables with a single command in bash - Stack Overflow
[https://stackoverflow.com/questions/2013547/assigning-default-values-to-shell-variables-with-a-single-command-in-bash#2013589] - - public:mzimmerm
Use shebang + exec emacs --script to run emacs code as a shell script but also as emacs code, for example load-file #! /bin/sh “:“; exec emacs --no-site-file --script “$0“ -- “$@“ # -*-emacs-lisp-*- (print (+ 2 2))
Run elisp code as script - summary
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)