commands

shellcheck — analyze shell scripts

Optional ShellCheck static analysis tool reports common shell issues. It does not execute the script or establish correctness. Not installed in the authoring environment. Example assumes a fresh shell lab fixture with new output names.

Formal Syntax & Structure

linux syntaxlinux
shellcheck SCRIPT

Parameters & Attributes

NameTypeDescription
SCRIPToperandscript to analyze

Return Value

exit status and output

Optional ShellCheck static analysis tool reports common shell issues. It does not execute the script or establish correctness. Not installed in the authoring environment.

Working Example

Example Snippetlinux
shellcheck check-report.sh
Linux Reference