v0.4.0
Pre-release
Pre-release
Highlights:
- Merge
parser
,ast
,token
andprinter
into a single packagesyntax
- Use separate operator types in nodes rather than
Token
- Use operator value names that express their function
- Keep
;
if on a separate line when formatting - cmd/shfmt
- Allow whitespace after
#!
in a shebang
- Allow whitespace after
- syntax
- Implement operator precedence for
[[ ]]
- Parse
$(foo)
andfoo
as the same (shfmt
then converts the latter to the former) - Rename
Quoted
toDblQuoted
for clarity - Split
((foo))
nodes as their own type,ArithmCmd
- Add support for bash parameter expansion slicing
- Implement operator precedence for
Binaries built on go version devel +8a2a999 Tue Nov 8 00:51:14 2016 +0000 linux/amd64
.