$ 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 informationslick provides an alternative to sh -n, which is problematic for a number of minor reasons:
shis hardly ever a bare bones POSIX sh interpreter on most UNIX systems, but usually soft linked tobash,ksh,ash, or even stranger things. So anyone genuinely interested in vetting their#!/bin/shscripts for compliance risks getting false negative scans for scripts that actually contain bashisms, kshisms, and so on. By contrast,slickguarantees pure POSIX parsing, so that scripts are scanned consistently regardless of the particular environment configuration.shis difficult to obtain in Windows. Cygwin-like environments are themselves difficult to setup. Should a unix, Linux, Windows, or other system desire syntax checking,slickis easy to obtain by gox ports, or through the wonderfully cross-platform Go toolchain.
$ go install github.com/mcandre/slick/cmd/slick@latestBSD-2-Clause
(None)
For more information on developing slick itself, see DEVELOPMENT.md.
🌀
