shfmt

A shell parser, formatter and interpreter (POSIX/Bash/mksh).

LinuxDeveloper ToolsOpen source

Verify your download

Select the file you downloaded to check it against the hash we published — the check runs in your browser, nothing is uploaded.

About

shfmt is an open-source developer tool for working with shell code on Linux. It combines a shell parser, formatter, and interpreter in one program. The tool supports POSIX shell, Bash, and mksh.

As a parser, shfmt processes code written for these shell environments. Its formatter is intended to organize shell source into a consistent form. Its interpreter provides support for interpreting shell code within the same tool.

shfmt is available through MirrorNest as part of its Linux Developer Tools catalog. MirrorNest mirrors the official build directly onto its own storage and scans it for malware before publishing. This provides a catalog distribution of the official Linux build while retaining its open-source status.

Details

PlatformLinux
CategoryDeveloper Tools
LicenseOpen source
PricingFree
Package IDshfmt
AuthorCanonical
Latest versionv3.12.0
File typeSNAP
File size1.0 MB
Published9/25/2026

SHA-256

Does this still work for you?

Works (0)Doesn't work (0)Sign in to vote

Reviews

No reviews yet — be the first.

Leave a review

Sign in to post as a verified member instead of anonymously.

shfmt alternatives