1

This question already has an answer here:

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.

marked as duplicate by Jeff Schaller, Rui F Ribeiro, Romeo Ninov, Archemar, user34720 Jul 7 '17 at 16:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I know of checkbasisms. – amphetamachine Jul 6 '17 at 22:11
  • @Jeff Schaller nope see my edit – Massimo Jul 6 '17 at 22:20
  • checkbasisms : I click on 'checkbashisms Web Site' ... it open a web page 'forbidden' ... – Massimo Jul 6 '17 at 22:23
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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.