All Versions
25
Latest Version
Avg Release Cycle
127 days
Latest Release
691 days ago
Changelog History
Page 3
Changelog History
Page 3
-
v0.3.2 Changes
March 22, 2014โ 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
-
v0.3.1 Changes
February 03, 2014โ Added
- The
-s
flag to specify shell dialect - SC2105/SC2104: Warn about
break/continue
outside loops - SC1076: Detect invalid
[/[[
arithmetic like[ 1 + 2 = 3 ]
- SC1075: Suggest using
elif
overelse if
๐ Fixed
- Don't warn when comma separating elements in brace expansions
- ๐ Improved detection of single quoted
sed
variables, e.g.sed '$d'
- ๐ Parsing of arithmetic for loops using
{..}
instead ofdo..done
- Don't treat the last pipeline stage as a subshell in ksh/zsh
- The
-
v0.3.0 Changes
January 19, 2014โ Added
- A man page (thanks Dridi!)
- GCC compatible error reporting (
shellcheck -f gcc
) - ๐
CheckStyle compatible XML error reporting (
shellcheck -f checkstyle
) - โ Error codes for each warning, e.g. SC1234
- ๐ Allow disabling warnings with
# shellcheck disable=SC1234
- ๐ Allow disabling warnings with
--exclude
- SC2103: Suggest using subshells over
cd foo; bar; cd ..
- SC2102: Warn about duplicates in char ranges, e.g.
[10-15]
- SC2101: Warn about named classes not inside a char range, e.g.
[:digit:]
- SC2100/SC2099: Warn about bad math expressions like
i=i+5
- SC2098/SC2097: Warn about
foo=bar echo $foo
- SC2095: Warn when using
ssh
/ffmpeg
inwhile read
loops - ๐ Better warnings for missing here doc tokens
๐ Fixed
- Don't warn when single quoting variables with
ssh/perl/eval
${!var}
is now counted as a variable reference
โ Removed
- Suggestions about using parameter expansion over basename
- The
jsoncheck
binary. Useshellcheck -f json
instead.
-
v0.2.0 Changes
October 27, 2013โ Added
- Suggest
./*
instead of*
when passing globs to commands - Suggest
pgrep
overps | grep
- Warn about unicode quotes
- Warn about assigned but unused variables
- Inform about client side expansion when using
ssh
๐ Fixed
- CLI tool now uses exit codes and stderr canonically
- ๐ Parsing of extglobs containing empty patterns
- ๐
Parsing of bash style
eval foo=(bar)
- ๐ Parsing of expansions in here documents
- ๐ Parsing of function names containing :+-
- ๐จ Don't warn about
find|xargs
when using-print0
- Suggest
-
v0.1.0 Changes
July 23, 2013โ Added
- ๐ First release