Improve warnings for bad parameter expansion (fixes #2297)

This commit is contained in:
Vidar Holen
2021-08-16 20:56:51 -07:00
parent fed4a048bc
commit bb0a571a1e
3 changed files with 80 additions and 15 deletions

View File

@@ -6,6 +6,7 @@
- SC2292: Suggest [[ over [ in Bash/Ksh scripts (optional)
- SC2293/SC2294: Warn when calling `eval` with arrays
- SC2295: Warn about "${x#$y}" treating $y as a pattern when not quoted
- SC2296-SC2301: Improved warnings for bad parameter expansions
### Fixed
- SC2102 about repetitions in ranges no longer triggers on [[ -v arr[xx] ]]