ShellCheck v0.3.3 Release Notes

Release Date: 2014-05-29 // almost 10 years ago
  • โž• Added

    • SC2144: Warn when using globs in [/[[
    • SC2143: Suggesting using grep -q over [ "$(.. | grep)" ]
    • SC2142: Warn when referencing positional parameters in aliases
    • SC2141: Warn about suspicious IFS assignments like IFS="\n"
    • SC2140: Warn about bad embedded quotes like echo "var="value""
    • SC2130: Warn when using -eq on strings
    • SC2139: Warn about define time expansions in alias definitions
    • ๐ŸŒฒ SC2129: Suggest command grouping over a >> log; b >> log; c >> log
    • SC2128: Warn when expanding arrays without an index
    • SC2126: Suggest grep -c over grep|wc
    • SC2123: Warn about accidentally overriding $PATH, e.g. PATH=/my/dir
    • SC1083: Warn about literal {/} outside of quotes
    • SC1082: Warn about UTF-8 BOMs

    ๐Ÿ›  Fixed

    • SC2051 no longer triggers for {1,$n}, only {1..$n}
    • ๐Ÿ‘Œ Improved detection of single quoted sed variables, e.g. sed '$s///'
    • โš  Stop warning about single quoted variables in PS1 and similar
    • ๐Ÿ‘Œ Support for Zsh short form loops, =(..)

    โœ‚ Removed

    • SC1000 about unescaped lonely $, e.g. grep "^foo$"