sh v3.4.0 Release Notes

Release Date: 2021-10-01 // over 2 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)