Download Latest Version v3.13.1 source code.tar.gz (255.8 kB)
Email in envelope

Get an email when there's a new version of sh

Home / v3.13.1
Name Modified Size InfoDownloads / Week
Parent folder
shfmt_v3.13.1_darwin_amd64 2026-04-06 3.1 MB
shfmt_v3.13.1_darwin_arm64 2026-04-06 3.0 MB
shfmt_v3.13.1_linux_386 2026-04-06 2.9 MB
shfmt_v3.13.1_linux_amd64 2026-04-06 3.1 MB
shfmt_v3.13.1_linux_arm 2026-04-06 3.1 MB
shfmt_v3.13.1_linux_arm64 2026-04-06 3.0 MB
shfmt_v3.13.1_windows_386.exe 2026-04-06 3.1 MB
shfmt_v3.13.1_windows_amd64.exe 2026-04-06 3.3 MB
README.md 2026-04-06 1.1 kB
v3.13.1 source code.tar.gz 2026-04-06 255.8 kB
v3.13.1 source code.zip 2026-04-06 297.4 kB
Totals: 11 Items   25.2 MB 6
  • cmd/shfmt
  • Add support for [[zsh]] in EditorConfig files
  • Detect the shell variant from filenames like .zshrc and .bash_profile
  • Fix --apply-ignore when used with explicit args - [#1310]
  • syntax
  • Revert an accidental change to how array subscripts are formatted - [#1314]
  • Never join ;; with the previous line when formatting - [#1289]
  • Fix a bug where $1[foo] was parsed as a subscript in Zsh - [#1288]
  • Correctly parse $! in double quotes in Zsh - [#1298]
  • Allow indexing into special parameters in Zsh - [#1299]
  • Allow parameter expansions with empty names in Zsh - [#1280]
  • interp
  • Test against Bash 5.3 and fix three new discrepancies
  • Fix a few bugs related to nameref variables
  • Avoid panics when user input encounters unimplemented features

Consider becoming a sponsor if you benefit from the work that went into this release!

Binaries built on go version go1.26.1 linux/amd64 with:

CGO_ENABLED=0 go build -trimpath -ldflags="-w -s"
Source: README.md, updated 2026-04-06