-1

Is there any tool (for win would be fine) which can check my bash syntax, Im learning the scripting in bash so I need any tool which is capable to checj my scripts if there are any type errors.

Thnaks

john doe
  • 91
  • 2
  • 2
  • 5
  • There is simular question over there http://stackoverflow.com/questions/3668665/is-there-a-static-analysis-tool-like-lint-or-perlcritic-for-shell-scripts – hostmaster Aug 28 '12 at 12:44

1 Answers1

7

See the -n argument to bash:

Read commands but do not execute them. This may be used to check a shell script for syntax errors. This is ignored by interactive shells.

choroba
  • 231,213
  • 25
  • 204
  • 289