go-shfmt
A shell parser, formatter, and interpreter. Supports POSIX Shell, Bash, and mksh
A shell parser, formatter, and interpreter. Supports POSIX Shell, Bash, and mksh
To install this package, run one of the following:
shfmt is a simple, yet powerful, formatter for shell scripts. It supports multiple shell dialects such as: POSIX Shell, Bash & mksh. shfmt is also highly configurable and can format your code in several fashion & conventions, for example take a look at Google's bash styling: https://google.github.io/styleguide/shell.xml
Summary
A shell parser, formatter, and interpreter. Supports POSIX Shell, Bash, and mksh
Last Updated
Apr 6, 2026 at 22:29
License
BSD-3-Clause
Supported Platforms
GitHub Repository
https://github.com/mvdan/sh