How Warp Terminal Helps Me Correct My Scripts and Coding - The New Stack
[https://thenewstack.io/how-warp-terminal-helps-me-correct-my-scripts-and-coding/] - - 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)