1

is there any software, like lint for C, to check shell scripts ?

check

  1. the syntax

  2. the compatibility with bash ksh etc...

online web service or installable as program

I don't want to run and debug. I am looking for static analisys, as lint for C.

Massimo
  • 965
  • 1
  • 10
  • 23

1 Answers1

3

I like using ShellCheck. You can find it online at www.shellcheck.net or download for your disto from GitHub or the ShellCheck site.

bashBedlam
  • 999
  • 6
  • 6