Repository navigation
Releases
Releases · mvdan/sh
v0.5.0
Highlights:
- cmd/shfmt
- Remove
-cpuprofile - Don't read entire files into memory to check for a shebang
- Remove
- syntax
- Use
uint32for tokens and positions in nodes - Use
WordandLitpointers consistently instead of values - Ensure
Word.Partsis never empty - Add support for expressions in array indexing and parameter expansion slicing
- Use
Binaries built on go version devel +a2bd5c5 Thu Nov 24 03:48:45 2016 +0000 linux/amd64.
v0.4.0
Highlights:
- Merge
parser,ast,tokenandprinterinto a single packagesyntax - Use separate operator types in nodes rather than
Token - Use operator value names that express their function
- Keep
;if on a separate line when formatting - cmd/shfmt
- Allow whitespace after
#!in a shebang
- Allow whitespace after
- syntax
- Implement operator precedence for
[[ ]] - Parse
$(foo)andfooas the same (shfmtthen converts the latter to the former) - Rename
QuotedtoDblQuotedfor clarity - Split
((foo))nodes as their own type,ArithmCmd - Add support for bash parameter expansion slicing
- Implement operator precedence for
Binaries built on go version devel +8a2a999 Tue Nov 8 00:51:14 2016 +0000 linux/amd64.
v0.3.0
Highlights:
- Add support for bash's
coprocand extended globbing like@(foo) - Improve test coverage, adding tests to
cmd/shfmtand bringingparserandprinterclose to 100% - Support empty C-style for loops like
for ((;;)) ... - Support for the
>|redirect operand - cmd/shfmt
- Fix issue where
.shand.bashfiles might not be walked if running on a directory - Fix issue where
-pwas not obeyed when formatting stdin
- Fix issue where
- parser
$''now generates anast.SglQuoted, not anast.Quoted- Support for ambiguous
((like with$(( - Improve special parameter expansions like
$@or$! - Improve bash's
exporttypeset,namerefandreadonly <>,>&and<&are valid POSIX- Support for bash's
^,^^,,and,,operands inside${}
Binaries built on go version devel +517a44d Tue Oct 25 12:23:49 2016 +0000 linux/amd64.
Also, binaries are now smaller thanks to -ldflags='-s -w'.
v0.2.0
Highlights:
- Optimizations all around, making
shfmt~15% faster - cmd/shfmt
- Add
-pflag to only accept POSIX Shell programs (parser.PosixConformant)
- Add
- parser
- Add support for ambiguous
$((as in$((foo) | bar) - Limit more bash features to
PosixConformantbeing false - Don't parse heredoc bodies in nested expansions and contexts
- Run tests through
bashto confirm the presence of a parse error
- Add support for ambiguous
- ast
- Add
Walk(Visitor, Node)function
- Add
Binaries built on go version devel +dc46b88 Thu Oct 13 09:37:17 2016 +0000 linux/amd64.