Forrest logo
back to context overview

shellcheck

List of commands for shellcheck:

  • shellcheck:tldr:07d1e shellcheck: Display output in the specified format (defaults to `tty`).
    $ shellcheck --format ${select} ${path-to-script-sh}
    try on your machine
    explain this command
  • shellcheck:tldr:0c1b2 shellcheck: Check a shell script interpreting it as the specified shell dialect (overrides the shebang at the top of the script).
    $ shellcheck --shell ${select} ${path-to-script-sh}
    try on your machine
    explain this command
  • shellcheck:tldr:41651 shellcheck: Also check any sourced shell scripts.
    $ shellcheck --checked-sourced ${path-to-script-sh}
    try on your machine
    explain this command
  • shellcheck:tldr:53174 shellcheck: Ignore one or more error types.
    $ shellcheck --exclude ${SC1009,SC1073} ${path-to-script-sh}
    try on your machine
    explain this command
  • shellcheck:tldr:85bfb shellcheck: List all available optional checks that are disabled by default.
    $ shellcheck --list-optional
    try on your machine
    explain this command
  • shellcheck:tldr:8cdc8 shellcheck: Check a shell script.
    $ shellcheck ${path-to-script-sh}
    try on your machine
    explain this command
  • shellcheck:tldr:d66e0 shellcheck: Enable one or more optional checks.
    $ shellcheck --enable=${select}
    try on your machine
    explain this command
back to context overview