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