Skip to content

v3.1.0

Compare
Choose a tag to compare
@mvdan mvdan released this 07 Apr 11:36
· 479 commits to master since this release

Highlights:

  • Redesigned Docker images, including buildx and an Alpine variant
  • cmd/shfmt
    • Replace source files atomically when possible
    • Support ignore = true in an EditorConfig to skip directories
    • Add -fn to place function opening braces on the next line
    • Improve behavior of -f when given non-directories
    • Docker images and go get installs now embed good version information
  • syntax
    • Add support for nested here-documents
    • Allow parsing for loops with braces, present in mksh and Bash
    • Expand CaseClause to describe its in token
    • Allow empty lines in Bash arrays in the printer
    • Support disabling KeepPadding
    • Avoid mis-printing some programs involving &
  • interp
    • Add initial support for Bash process substitutions
    • Add initial support for aliases
    • Fix an edge case where the status code would not be reset
    • The exit status code can now reflect being stopped by a signal
    • test -t now uses the interpreter's stdin/stdout/stderr files
  • expand
    • Improve the interaction of @ and * with quotes and IFS

Binaries built on go version go1.14.2 linux/amd64.

Please note that the binaries were re-uploaded on April 10th, to update the Go version and fix the missing version information.