Skip to content

v0.3.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@mvdan mvdan released this 26 Oct 07:52
· 2184 commits to master since this release

Highlights:

  • Add support for bash's coproc and extended globbing like @(foo)
  • Improve test coverage, adding tests to cmd/shfmt and bringing parser and printer close to 100%
  • Support empty C-style for loops like for ((;;)) ...
  • Support for the >| redirect operand
  • cmd/shfmt
    • Fix issue where .sh and .bash files might not be walked if running on a directory
    • Fix issue where -p was not obeyed when formatting stdin
  • parser
    • $'' now generates an ast.SglQuoted, not an ast.Quoted
    • Support for ambiguous (( like with $((
    • Improve special parameter expansions like $@ or $!
    • Improve bash's export typeset, nameref and readonly
    • <>, >& and <& are valid POSIX
    • Support for bash's ^, ^^, , and ,, operands inside ${}

Binaries built on go version devel +517a44d Tue Oct 25 12:23:49 2016 +0000 linux/amd64.

Also, binaries are now smaller thanks to -ldflags='-s -w'.