ShellCheck v0.4.5 Release Notes
Release Date: 2016-10-21 // over 7 years ago-
โ Added
- ๐ A Docker build (thanks, kpankonen!)
- SC2185: Suggest explicitly adding path for
find
- SC2184: Warn about unsetting globs (e.g.
unset foo[1]
) - ๐จ SC2183: Warn about
printf
with more formatters than variables - ๐จ SC2182: Warn about ignored arguments with
printf
- SC2181: Suggest using command directly instead of
if [ $? -eq 0 ]
- โ
SC1106: Warn when using
test
operators in(( 1 -eq 2 ))
๐ Changed
- โ Unrecognized directives now causes a warning rather than parse failure.
๐ Fixed
- ๐ Indices in associative arrays are now parsed correctly
- โ Missing shebang warning squashed when specifying with a directive
- ๐ Ksh multidimensional arrays are now supported
- Variables in substring ${a:x:y} expansions now count as referenced
- SC1102 now also handles ambiguous
$((
- Using
$(seq ..)
will no longer suggest quoting - SC2148 (missing shebang) is now suppressed when using shell directives
[ a '>' b ]
is now recognized as being correctly escaped