v3.1.0
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 itsin
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 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.