ShellCheck v0.6.0 Release Notes
Release Date: 2018-12-02 // over 5 years ago-
โ Added
- ๐ป Command line option --severity/-S for filtering by minimum severity
- ๐ป Command line option --wiki-link-count/-W for showing wiki links
- SC2152/SC2151: Warn about bad
exit
values like1234
and"foo"
- SC2236/SC2237: Suggest -n/-z instead of ! -z/-n
- SC2238: Warn when redirecting to a known command name, e.g. ls > rm
- SC2239: Warn if the shebang is not an absolute path, e.g. #!bin/sh
- SC2240: Warn when passing additional arguments to dot (.) in sh/dash
- ๐ SC1133: Better diagnostics when starting a line with |/||/&&
๐ Changed
- โ Most warnings now have useful end positions
- SC1117 about unknown double-quoted escape sequences has been retired
๐ Fixed
- SC2021 no longer triggers for equivalence classes like
[=e=]
- SC2221/SC2222 no longer mistriggers on fall-through case branches
- SC2081 about glob matches in
[ .. ]
now also triggers for!=
- SC2086 no longer warns about spaces in
$#
- SC2164 no longer suggests subshells for
cd ..; cmd; cd ..
read -a
is now correctly considered an array assignment- SC2039 no longer warns about LINENO now that it's POSIX