v2.5.0
Highlights:
- syntax
- Add support for Bash's
{varname}<
redirects - Add
SpaceRedirects
to format redirects like> word
- Parse
$\"
correctly within double quotes - A few fixes where minification would break programs
- Printing of heredocs within
<()
no longer breaks them - Printing of single statements no longer adds empty lines
- Error on invalid parameter names like
${1a}
- Add support for Bash's
- interp
Runner.Dir
is now always an absolute path
- shell
Expand
now supports expanding a lone~
Expand
andSourceNode
now have default timeouts
- cmd/shfmt
- Add
-sr
to print spaces after redirect operators - Don't skip empty string values in
-tojson
- Include comment positions in
-tojson
- Add
Binaries built on go version go1.10.3 linux/amd64
.