
ShellCheck – Shell script analyzer
ShellCheck is a free, online and offline tool that detects problems and suggests improvements to shell scripts.
ShellCheck – shell script analysis tool
ShellCheck is an open source static analysis tool that automatically finds bugs in your shell scripts.
ShellCheck: SC2110 – In ` [ [..]]`, use `||` instead of `-o`.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.
ShellCheck: SC3063 – In POSIX sh, test -R and namerefs in general are ...
Rationale: [ -R name ] is used to check whether name is a nameref. Since POSIX sh has no namerefs, either use a shell that does, or rewrite to not need namerefs.
ShellCheck: SC2061 – Quote the parameter to `-name` so the shell …
These compete with the shell's pattern expansion, and must therefore be quoted so that they are passed literally to find. The example command may end up executing as find . -name README.txt after the …
ShellCheck: SC1085 – Did you forget to move the ;; after extending this ...
is a static analysis tool for shell scripts. This page is part of its documentation.
www.shellcheck.net
SC2033 – Shell functions can't be passed to external commands. Use separate script or sh -c. SC2034 – foo appears unused. Verify it or export it. SC2035 – Use `./*glob*` or `-- *glob*` so names with …
ShellCheck: SC2222 – This pattern never matches because of a previous ...
This pattern never matches because of a previous pattern. See companion warning SC2221. ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.
ShellCheck: SC2112 – `function` keyword is non-standard. Delete it.
Rationale: function is a non-standard keyword that can be used to declare functions in Bash and Ksh. In POSIX sh and dash, a function is instead declared without the function keyword as in the correct …
ShellCheck: SC2232 – Can't use `sudo` with builtins like `cd`. Did you ...
Rationale: Due to the Unix process model, sudo can only change the privileges of a new, external process. It can not grant privileges to a currently running process. This means that shell builtins -- …