4Internet / developer utilities

Shell Script Reviewer

Find shell quoting, portability and variable-use mistakes without executing your script.

Account access needed

This tool requires an eligible account. Check your plan and sign-in status.

A practical guide

How to use Shell Script Reviewer

Use ShellCheck before running or sharing a shell script. It reads shell syntax and reports suspicious constructs; the script is never executed. Review findings in context because static analysis cannot know every runtime value or intention.

  1. Paste a script, including its shebang so ShellCheck knows the intended shell. Remove passwords and production secrets first.
  2. Choose Analyze. Read each finding by line, column, severity and SC rule number. The original script remains unchanged.
  3. Quote variable expansions when one value should remain one argument. Recheck your edited script and test it separately in an environment you control.

Worked example

Illustrative input and expected interpretation. This example is not a live measurement.

Input

#!/bin/sh
printf '%s\n' $name

What to expect

SC2086 identifies the unquoted variable expansion. Use "$name" when word splitting and pathname expansion are unintended.

What to watch for

  • A clean report does not prove that a script is safe or correct. ShellCheck does not run commands, validate external service state, or model every dependency.
  • External source files and your personal ShellCheck configuration are not loaded. Review warnings about missing sourced files in your own environment.
  • Limit: 64 KiB of source, three CPU seconds and five wall-clock seconds. Very complex scripts may reach the limit.

Your input: submitted to this server for processing. This tool does not send it to an AI provider. Your input is processed for this request. Temporary processing files are removed afterward. Avoid pasting secrets or personal data.

References