v2.1.0
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
- Add
- 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
- Expose
- cmd/shfmt
- Add
-f
to just list all the shell files found - Add
-kp
to keep the column offsets in place
- Add
- cmd/gosh
- Now supports a basic interactive mode
Binaries built on go version go1.9.2 linux/amd64
.