Warn when $? refers to echo or condition (ref #2541)

This commit is contained in:
Vidar Holen
2022-07-23 09:38:58 -07:00
parent b261ec24f9
commit 5cf6e01ce9
4 changed files with 42 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
- SC2316: Warn about 'local readonly foo' and similar (thanks, patrickxia!)
- SC2317: Warn about unreachable commands
- SC2318: Warn about backreferences in 'declare x=1 y=$x'
- SC2319/SC2320: Warn when $? refers to echo/printf/[ ]/[[ ]]/test
### Fixed
- SC2086: Now uses DFA to make more accurate predictions about values