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.10.0
Name Modified Size InfoDownloads / Week
Parent folder
shfmt_v3.10.0_linux_386 2024-10-20 2.7 MB
shfmt_v3.10.0_linux_arm 2024-10-20 2.8 MB
shfmt_v3.10.0_darwin_amd64 2024-10-20 2.9 MB
shfmt_v3.10.0_linux_amd64 2024-10-20 2.9 MB
shfmt_v3.10.0_darwin_arm64 2024-10-20 2.9 MB
shfmt_v3.10.0_linux_arm64 2024-10-20 2.8 MB
shfmt_v3.10.0_windows_386.exe 2024-10-20 2.9 MB
sha256sums.txt 2024-10-20 744 Bytes
shfmt_v3.10.0_windows_amd64.exe 2024-10-20 3.1 MB
README.md 2024-10-20 997 Bytes
v3.10.0 source code.tar.gz 2024-10-20 226.3 kB
v3.10.0 source code.zip 2024-10-20 267.0 kB
Totals: 12 Items   23.4 MB 0
  • cmd/shfmt
  • Report the correct language variant in parser error messages - [#1102]
  • Move --filename out of the parser options category - [#1079]
  • syntax
  • Parse all CRLF line endings as LF, including inside heredocs - [#1088]
  • Count skipped backslashes inside backticks in position column numbers - [#1098]
  • Count skipped null bytes in position column numbers for consistency
  • interp
  • Fix a regression in v3.9.0 which broke redirecting files to stdin - [#1099]
  • Fix a regression in v3.9.0 where HandlerContext.Stdin was never nil
  • Add an Interactive option to be used by interactive shells - [#1100]
  • Support closing stdin, stdout, and stderr via redirections like <&-

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

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

CGO_ENABLED=0 go build -trimpath -ldflags="-w -s -X=main.version=v3.10.0"
Source: README.md, updated 2024-10-20