mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 05:21:34 -07:00
Use notElem instead of not on the result of elem
This commit is contained in:
parent
ff5f29f661
commit
2e52c2b56a
1 changed files with 1 additions and 1 deletions
|
@ -3169,7 +3169,7 @@ checkSplittingInArrays params t =
|
|||
T_DollarBraced id _ str |
|
||||
not (isCountingReference part)
|
||||
&& not (isQuotedAlternativeReference part)
|
||||
&& not (getBracedReference (bracedString part) `elem` variablesWithoutSpaces)
|
||||
&& getBracedReference (bracedString part) `notElem` variablesWithoutSpaces
|
||||
-> warn id 2206 $
|
||||
if shellType params == Ksh
|
||||
then "Quote to prevent word splitting/globbing, or split robustly with read -A or while read."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue