Skip to content

v0.4.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@mvdan mvdan released this 08 Nov 13:15
· 2016 commits to master since this release

Highlights:

  • Merge parser, ast, token and printer into a single package syntax
  • 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
  • syntax
    • Implement operator precedence for [[ ]]
    • Parse $(foo) and foo as the same (shfmt then converts the latter to the former)
    • Rename Quoted to DblQuoted for clarity
    • Split ((foo)) nodes as their own type, ArithmCmd
    • Add support for bash parameter expansion slicing

Binaries built on go version devel +8a2a999 Tue Nov 8 00:51:14 2016 +0000 linux/amd64.