shfmt is a command-line formatter for shell programs. It supports
POSIX Shell, Bash, Zsh, and mksh syntax, and can check, format, or
rewrite shell scripts consistently.

Examples:

  shfmt script.sh                 # write formatted output to stdout
  shfmt -w script.sh              # rewrite the file in place
  shfmt -d script.sh              # show formatting differences
  shfmt -l .                      # list files that need formatting

Run "shfmt -h" for the complete list of options. The package installs
the executable as /usr/bin/shfmt. Upstream documentation and the source
form of the manual page are installed under /usr/doc/shfmt-3.14.1/.

The separate vendor archive supplies the Go modules, so the SlackBuild
does not download dependencies or a Go toolchain. Go and the modules
are needed only while building; shfmt has no runtime dependencies
outside the standard Go runtime embedded in the binary.

This package is built from the official mvdan/sh v3.14.1 release:
https://github.com/mvdan/sh
