Skip to content

Programming: Shell scripts

Joshua Newton edited this page Apr 25, 2021 · 1 revision

Testing your scripts with shellcheck

Bash/shell scripting can often feel unfriendly compared to Python, as there are a lot of subtle "gotchas" and arcane syntax tricks. To prevent bugs, and to avoid writing potentially unsafe scripts, be sure to run shellcheck on your changes.

Shellcheck can also be integrated into JetBrains IDEs (PyCharm, etc.) using the Shell scripts plugin.

Shellcheck also provides a very detailed Wiki, with documentation for each check, so you can look up examples and rationale for each warning or error.

Clone this wiki locally