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.Posto actually return the start position - Fix mishandling of inline comments in two edge cases
- Add
- interp
- Expose
Fieldsto 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
testoperators:-b -c -t -o - Configurable kill handling - see
KillTimeout
- Expose
- cmd/shfmt
- Add
-fto just list all the shell files found - Add
-kpto 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.