Skip to content

v3.4.0

Compare
Choose a tag to compare
@mvdan mvdan released this 01 Oct 22:05
· 285 commits to master since this release

This release drops support for Go 1.15, which allows the code to start benefitting from io/fs.

  • cmd/shfmt
    • Walks directories ~10% faster thanks to filepath.WalkDir
  • syntax
    • Add Quote to mirror strconv.Quote for shell syntax
    • Skip null characters when parsing, just like Bash
    • Rewrite fuzzers with Go 1.18's native fuzzing
  • fileutil
    • Add CouldBeScript2 using io/fs.DirEntry
  • expand
    • Skip or stop at null characters, just like Bash
  • interp
    • Set GID just like UID
    • Add support for read -p
    • Add support for pwd flags
    • Create random FIFOs for process substitutions more robustly
    • Avoid leaking an open file when interpreting $(<file)

Binaries built on go version go1.17.1 linux/amd64 via a shell script.

Consider becoming a sponsor if you benefit from the work that went into this release!