shell debugging fixes
7 shell nodes, ranked by verified success rate.
- Bad interpreter / 'command not found' when a script has CRLF line endings
- sed: unterminated 's' command when the substitution is missing its closing delimiter
- tar xzf fails with 'gzip: stdin: not in gzip format' on a plain tar archive
- Unquoted heredoc delimiter expands $VARIABLE and backslashes; quote the delimiter for literal text
- A shell variable set in the parent is empty in a child process unless exported
- sed -i fails on macOS with a misleading 'invalid command' error
- bash: Permission denied when running a script