Changelog
[0.5.0] - 2016-11-24
-cpuprofile
uint32
for tokens and positions in nodesWord
and Lit
pointers consistently instead of valuesWord.Parts
is never emptyChangelog
[0.4.0] - 2016-11-08
parser
, ast
, token
and printer
into a single package syntax
Token
;
if on a separate line when formatting#!
in a shebang[[ ]]
$(foo)
and foo
as the same (shfmt
then converts the latter to the former)Quoted
to DblQuoted
for clarity((foo))
nodes as their own type, ArithmCmd
Changelog
[0.3.0] - 2016-10-26
coproc
and extended globbing like @(foo)
cmd/shfmt
and bringing parser
and printer
close to 100%for ((;;)) ...
>|
redirect operand.sh
and .bash
files might not be walked if running on a directory-p
was not obeyed when formatting stdin$''
now generates an ast.SglQuoted
, not an ast.Quoted
((
like with $((
$@
or $!
export
typeset
, nameref
and readonly
<>
, >&
and <&
are valid POSIX^
, ^^
, ,
and ,,
operands inside ${}
Changelog
[0.2.0] - 2016-10-13
shfmt
~15% faster-p
flag to only accept POSIX Shell programs (parser.PosixConformant
)$((
as in $((foo) | bar)
PosixConformant
being falsebash
to confirm the presence of a parse errorWalk(Visitor, Node)
function