ShellCheck v0.4.0 Release Notes

Release Date: 2015-09-05 // over 8 years ago
  • โž• Added

    • ๐Ÿ‘Œ Support for following sourced files
    • ๐Ÿ‘Œ Support for setting default flags in SHELLCHECK_OPTS
    • An --external-sources flag for following arbitrary sourced files
    • A source directive to override the filename to source
    • SC2166: Suggest using [ p ] && [ q ] over [ p -a q ]
    • SC2165: Warn when nested for loops use the same variable name
    • SC2164: Warn when using cd without checking that it succeeds
    • SC2163: Warn about export $var
    • SC2162: Warn when using read without -r
    • SC2157: Warn about [ "$var " ] and similar never-empty string matches

    ๐Ÿ›  Fixed

    • cat -vnE file and similar will no longer flag as UUOC
    • ๐Ÿ“œ Nested trinary operators in (( )) now parse correctly
    • ๐Ÿ“œ Ksh ${ ..; } command expansions now parse