Download Latest Version v3.11.0 source code.tar.gz (232.0 kB)
Email in envelope

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

Home / v3.8.0
Name Modified Size InfoDownloads / Week
Parent folder
shfmt_v3.8.0_darwin_amd64 2024-02-11 2.7 MB
shfmt_v3.8.0_linux_386 2024-02-11 2.5 MB
shfmt_v3.8.0_darwin_arm64 2024-02-11 2.7 MB
shfmt_v3.8.0_linux_amd64 2024-02-11 2.7 MB
shfmt_v3.8.0_linux_arm 2024-02-11 2.7 MB
shfmt_v3.8.0_windows_amd64.exe 2024-02-11 2.9 MB
shfmt_v3.8.0_linux_arm64 2024-02-11 2.7 MB
sha256sums.txt 2024-02-11 736 Bytes
shfmt_v3.8.0_windows_386.exe 2024-02-11 2.7 MB
README.md 2024-02-11 1.4 kB
v3.8.0 source code.tar.gz 2024-02-11 221.7 kB
v3.8.0 source code.zip 2024-02-11 261.2 kB
Totals: 12 Items   22.2 MB 0

This release drops support for Go 1.19 and 1.20 and includes many features and bugfixes, such as improving EditorConfig support in shfmt.

  • cmd/shfmt
  • Support EditorConfig language sections such as [[shell]] - [#664]
  • Add --apply-ignore for tools and editors - [#1037]
  • syntax
  • Allow formatting redirects before all command argumetnts - [#942]
  • Support brace expansions with uppercase letters - [#1042]
  • Unescape backquotes in single quotes within backquotes - [#1041]
  • Better error when using function in POSIX mode - [#993]
  • Better column numbers for escapes inside backquotes - [#1028]
  • interp
  • Support parentheses in classic test commands - [#1036]
  • Determine access to a directory via unix.Access - [#1033]
  • Support subshells with FuncEnviron as Env - [#1043]
  • Add support for fs.DirEntry via ReadDirHandler2
  • expand
  • Add support for fs.DirEntry via ReadDir2
  • Support zero-padding in brace expansions - [#1042]

A special thanks to all the contributors to this release! @theclapp @slabstone @MaienM

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

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

CGO_ENABLED=0 go build -trimpath -ldflags="-w -s -X=main.version=v3.8.0"
Source: README.md, updated 2024-02-11