Warn about [ ! -o opt ] (and -a) being unconditionally true (fixes #3174)

This commit is contained in:
Vidar Holen 2025-04-08 10:53:52 -07:00
commit c41f3a4b8a
2 changed files with 23 additions and 0 deletions

View file

@ -4,6 +4,8 @@
- SC2329: Warn when (non-escaping) functions are never invoked.
- SC2330: Warn about unsupported glob matches with [[ .. ]] in BusyBox.
- SC2331: Suggest using standard -e instead of unary -a in tests.
- SC2332: Warn about `[ ! -o opt ]` being unconditionally true in Bash.
- SC3062: Warn about bashism `[ -o opt ]`.
- Precompiled binaries for Linux riscv64 (linux.riscv64)
### Changed
- SC2002 about Useless Use Of Cat is now disabled by default. It can be