ShellCheck v0.3.2 Release Notes
Release Date: 2014-03-22 // about 10 years ago-
โ Added
- SC2121: Warn about trying to
set
variables, e.g.set var = value
- SC2120/SC2119: Warn when a function uses
$1..
if none are ever passed - SC2117: Warn when using
su
in interactive mode, e.g.su foo; whoami
- SC2116: Detect useless use of echo, e.g.
for i in $(echo $var)
- SC2115/SC2114: Detect some catastrophic
rm -r "$empty/"
mistakes - SC1081: Warn when capitalizing keywords like
While
- SC1077: Warn when using acute accents instead of backticks
๐ Fixed
- Shells are now properly recognized in shebangs containing flags
- โ Stop warning about math on decimals in ksh/zsh
- โ Stop warning about decimal comparisons with
=
, e.g.[ $version = 1.2 ]
- ๐ Parsing of
|&
${a[x]}
not counting as a reference ofx
(( x[0] ))
not counting as a reference ofx
- SC2121: Warn about trying to