Answers:
$ shellcheck myscript.sh
In myscript.sh line 590:
for f in $*; do
^-- SC1009: The mentioned parser error was in this for loop.
In myscript.sh line 617:
if [ ! -e "$somefile".vcf ]; then
^-- SC1046: Couldn't find 'fi' for this 'if'.
^-- SC1073: Couldn't parse this if expression.
In myscript.sh line 1026:
done
^-- SC1047: Expected 'fi' matching previously mentioned 'if'.
^-- SC1072: Unexpected keyword/token. Fix any mentioned problems and try again.
好吧,它并没有告诉我634行上是否缺少'if',但这非常有帮助。