ShellCheck v0.3.2 Release Notes

Release Date: 2014-03-22 // about 10 years ago
  • โž• 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 of x
    • (( x[0] )) not counting as a reference of x