ShellCheck v0.4.5 Release Notes

Release Date: 2016-10-21 // over 7 years ago
  • โž• Added

    • ๐Ÿ— A Docker build (thanks, kpankonen!)
    • SC2185: Suggest explicitly adding path for find
    • SC2184: Warn about unsetting globs (e.g. unset foo[1])
    • ๐Ÿ–จ SC2183: Warn about printf with more formatters than variables
    • ๐Ÿ–จ SC2182: Warn about ignored arguments with printf
    • SC2181: Suggest using command directly instead of if [ $? -eq 0 ]
    • โœ… SC1106: Warn when using test operators in (( 1 -eq 2 ))

    ๐Ÿ”„ Changed

    • โš  Unrecognized directives now causes a warning rather than parse failure.

    ๐Ÿ›  Fixed

    • ๐Ÿ“œ Indices in associative arrays are now parsed correctly
    • โš  Missing shebang warning squashed when specifying with a directive
    • ๐Ÿ‘ Ksh multidimensional arrays are now supported
    • Variables in substring ${a:x:y} expansions now count as referenced
    • SC1102 now also handles ambiguous $((
    • Using $(seq ..) will no longer suggest quoting
    • SC2148 (missing shebang) is now suppressed when using shell directives
    • [ a '>' b ] is now recognized as being correctly escaped