This is the literate programming notebook for /shell/scripts. Because this is a ton of arcane bash I thought it’d be nice if it was thoroughly documented. For the readers sake, do not assume that they read previous entries. They might only be interested in one particular script. If you find yourself documenting something over and over put a reference.
Construct the shebang-line. If you want to tangle this file from within emacs, put your cursor on the codeblock and press `C-c C-c` “` (defconst shebang-line (concat “#!” (locate-file “bash” exec-path exec-suffixes 1))) “`