GitHub - mcandre/slick: a CI-ready shell language syntax checker
slick provides a reliable syntax checker for pure POSIX sh scripts, as sh itself is often aliased with superset languages from ash to zsh.
$ slick -n examples; echo "$?" 2017/09/14 17:46:09 examples/apples.bash:2:8: arrays are a bash feature 2017/09/14 17:46:09 examples/hello.sh:2:6: reached EOF without closing quote ' 1 $ slick -help -help Show usage information -n Validate syntax -version Show version information
slick provides an alternative to sh -n, which is problematic for a number of minor reasons: