I'm looking for a way to validate the syntax of a bash script without executing it.
bash -n only seems to validate base bash syntax, what I am missing is:
- function name validations
- un-initialized parameter validations
Any ideas on how to achieve that?
I am also missing the validation of the number of parameters a function takes, but that sounds like a very hard thing to do in theory, in bash.
In other words what I'd like to do is pretty much take a bash script and "compile" it like I would compile a c++ program.