v3.1.0
Highlights:
- Redesigned Docker images, including buildx and an Alpine variant
- cmd/shfmt
- Replace source files atomically when possible
- Support
ignore = truein an EditorConfig to skip directories - Add
-fnto place function opening braces on the next line - Improve behavior of
-fwhen given non-directories - Docker images and
go getinstalls now embed good version information
- syntax
- Add support for nested here-documents
- Allow parsing for loops with braces, present in mksh and Bash
- Expand
CaseClauseto describe itsintoken - 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 -tnow uses the interpreter's stdin/stdout/stderr files
- expand
- Improve the interaction of
@and*with quotes andIFS
- Improve the interaction of
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.