
24 Jul
2025
24 Jul
'25
6:13 a.m.
Dave at YSAP has a nice little 3 minute video on syntax checking bash scripts. He introduces the `bash -n` feature and compares and contrasts it with https://www.shellcheck.net/ for doing that (and more). If 3 minutes is too long, `bash -n` syntax checks without executing the script. It's matched to *your* specific version of bash. It considers an empty file valid (as no errors occurred).