ShellCheck v0.4.6 Release Notes

Release Date: 2017-03-26 // about 7 years ago
  • โž• Added

    • SC2204/SC2205: Warn about ( -z foo ) and ( foo -eq bar )
    • SC2200/SC2201: Warn about brace expansion in [/[[
    • SC2198/SC2199: Warn about arrays in [/[[
    • ๐Ÿ—„ SC2196/SC2197: Warn about deprecated egrep/fgrep
    • SC2195: Warn about unmatchable case branches
    • SC2194: Warn about constant 'case' statements
    • SC2193: Warn about [[ file.png == *.mp3 ]] and other unmatchables
    • SC2188/SC2189: Warn about redirections without commands
    • ๐Ÿ—„ SC2186: Warn about deprecated tempfile
    • SC1109: Warn when finding &/>/< unquoted
    • SC1108: Warn about missing spaces in [ var= foo ]

    ๐Ÿ”„ Changed

    • All files are now read as UTF-8 with lenient latin1 fallback, ignoring locale
    • Unicode quotes are no longer considered syntactic quotes
    • โš  ash scripts will now be checked as dash with a warning

    ๐Ÿ›  Fixed

    • -c no longer suggested when using grep -o | wc
    • Comments and whitespace are now allowed before filewide directives
    • Here doc delimiters with esoteric quoting like foo"" are now handled
    • SC2095 about ssh in while read loops is now suppressed when using -n
    • ๐Ÿ–จ %(%Y%M%D)T now recognized as a single formatter in printf checks
    • grep -F now suppresses regex related suggestions
    • Command name checks now recognize busybox applet names