ShellCheck, a static analysis tool for shell scripts
The goals of ShellCheck are:
- To point out and clarify typical beginner's syntax issues, that causes a shell to give cryptic error messages.
- To point out and clarify typical intermediate level semantic problems, that causes a shell to behave strangely and counter-intuitively.
- To point out subtle caveats, corner cases and pitfalls, that may cause an advanced user's otherwise working script to fail under future circumstances.
The goals of ShellCheck are:
- To point out and clarify typical beginner's syntax issues, that causes a shell to give cryptic error messages.
- To point out and clarify typical intermediate level semantic problems, that causes a shell to behave strangely and counter-intuitively.
- To point out subtle caveats, corner cases and pitfalls, that may cause an advanced user's otherwise working script to fail under future circumstances.
To install shellcheck, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install shellcheck
To see what files were installed by shellcheck, run:
port contents shellcheck
To later upgrade shellcheck, run:
sudo port selfupdate && sudo port upgrade shellcheck
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.