sh v2.1.0 Release Notes

Release Date: 2017-11-25 // over 6 years ago
  • Highlights:

    • syntax
      • Add Stmts, to parse one statement at a time
      • Walk no longer ignores comments
      • Parameter expansion end fixes, such as $foo.bar
      • Whitespace alignment can now be kept - see KeepPadding
      • Introduce an internal newline token to simplify the parser
      • Fix Block.Pos to actually return the start position
      • Fix mishandling of inline comments in two edge cases
    • interp
      • Expose Fields to expand words into strings
      • First configurable modules - cmds and files
      • Add support for the new TimeClause
      • Add support for namerefs and readonly vars
      • Add support for associative arrays (maps)
      • More sh builtins: exec return
      • More bash builtins: command pushd popd dirs
      • More test operators: -b -c -t -o
      • Configurable kill handling - see KillTimeout
    • cmd/shfmt
      • Add -f to just list all the shell files found
      • Add -kp to keep the column offsets in place
    • cmd/gosh
      • Now supports a basic interactive mode