sh v0.2.0 Release Notes

Release Date: 2016-10-13 // over 7 years ago
  • Highlights:

    • Optimizations all around, making shfmt ~15% faster
    • cmd/shfmt
      • Add -p flag to only accept POSIX Shell programs (parser.PosixConformant)
    • 📜 parser
      • Add support for ambiguous $(( as in $((foo) | bar)
      • Limit more bash features to PosixConformant being false
      • Don't parse heredoc bodies in nested expansions and contexts
      • Run tests through bash to confirm the presence of a parse error
    • ast
      • Add Walk(Visitor, Node) function