Shfmt is a shell parser, formatter, and interpreter.
It suports POSIX Shell, Bash, and mksh.

Homepage:
https://github.com/mvdan/sh
