
DebuggingGuide
Debugging Shell Scripts From set x All the Way to strace
Debug shell scripts from set -x and ShellCheck to traps, caller, PIPESTATUS and strace, with a real buggy script traced down to its root cause.
35 min read
Quoting, arrays, traps, parameter expansion and the other corners of Bash that decide whether a script works or only seems to.

Debug shell scripts from set -x and ShellCheck to traps, caller, PIPESTATUS and strace, with a real buggy script traced down to its root cause.

Write portable shell scripts that run on dash, BusyBox and Bash: what POSIX sh allows, which Bashisms to drop, and how to test on each shell.

A complete Bash scripting tutorial: variables, quoting, tests, loops, functions, arrays, exit codes, traps and a finished backup script you can trust.
One email when a new post is published. No spam.