github mvdan/sh v3.4.0

latest releases: v3.10.0, v3.9.0, v3.8.0...
3 years ago

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!

Don't miss a new sh release

NewReleases is sending notifications on new releases.