Shellcheck

Finds mistakes in shell scripts

koalaman
 
Open sourceCommand-line tool

Third-party software from public repositories. bestappfor.me does not host it, does not verify it and is not responsible for its use. Download only from the official source and check the license. Terms and disclaimer

Stars
40.2K
GitHub
Health
Fair
8 of 11 checks passed
License
GPL-3.0-only
Open source
Version
0.11.0
a year ago
Category
Developer tools
Command-line tool
Language
Haskell

About

Run it on a bash or sh script and it points out problems before they bite: quoting slips, odd conditionals, misused commands and habits that break on other systems. Each warning explains what is wrong, so it also helps you learn.

You can type shellcheck followed by a file name in the terminal, paste a script into the ShellCheck website, or see the hints inside editors such as Vim, Emacs, Sublime and VSCode. It uses standard exit codes, so you can also add it to builds and test suites.

Highlights

  • Warns about quoting and conditional mistakes
  • Check scripts in the terminal or on the web
  • Shows hints in Vim, Emacs, Sublime and VSCode

Who it's for

Good for anyone writing bash scripts who wants to catch mistakes and learn the pitfalls as they go.

This description was written by our editors with automated assistance, not by the developer, and has not been reviewed yet.

Why it is here

  • Code changed today

Official channels

Official channels only. We never host or repackage downloads.

Homebrew
macOS, Linux
0.11.0
brew install shellcheck
winget
Windows
0.11.0
winget install --id koalaman.shellcheck -e

Verified: installer URL on github.com/koalaman/shellcheck

GitHub release
macOS, Linux
v0.11.0

You might also like

See all