I have a long shell script containing a lot of conditions and I want to know whether there is any syntax error in the script without running it.
Since shell script is interpreted I think it is not possible but is there a way to know by using some trick.
bash
's inbuilt syntax checḱing you can use shellcheck to identify less severe issues and bad practices. – Glutanimate Jun 15 '14 at 22:40