sh v0.4.0 Release Notes

Release Date: 2016-11-08 // over 7 years ago
  • 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