ShellCheck v0.4.0 Release Notes
Release Date: 2015-09-05 // over 8 years ago-
โ Added
- ๐ Support for following
source
d files - ๐ Support for setting default flags in
SHELLCHECK_OPTS
- An
--external-sources
flag for following arbitrarysource
d files - A
source
directive to override the filename tosource
- SC2166: Suggest using
[ p ] && [ q ]
over[ p -a q ]
- SC2165: Warn when nested
for
loops use the same variable name - SC2164: Warn when using
cd
without checking that it succeeds - SC2163: Warn about
export $var
- SC2162: Warn when using
read
without-r
- SC2157: Warn about
[ "$var " ]
and similar never-empty string matches
๐ Fixed
cat -vnE file
and similar will no longer flag as UUOC- ๐ Nested trinary operators in
(( ))
now parse correctly - ๐ Ksh
${ ..; }
command expansions now parse
- ๐ Support for following