Also mention globbing in SC2206 (fixes #1626)
This commit is contained in:
parent
914974bd4f
commit
78b8e76066
|
@ -3095,8 +3095,8 @@ checkSplittingInArrays params t =
|
||||||
&& not (getBracedReference (bracedString part) `elem` variablesWithoutSpaces)
|
&& not (getBracedReference (bracedString part) `elem` variablesWithoutSpaces)
|
||||||
-> warn id 2206 $
|
-> warn id 2206 $
|
||||||
if shellType params == Ksh
|
if shellType params == Ksh
|
||||||
then "Quote to prevent word splitting, or split robustly with read -A or while read."
|
then "Quote to prevent word splitting/globbing, or split robustly with read -A or while read."
|
||||||
else "Quote to prevent word splitting, or split robustly with mapfile or read -a."
|
else "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a."
|
||||||
_ -> return ()
|
_ -> return ()
|
||||||
|
|
||||||
forCommand id =
|
forCommand id =
|
||||||
|
|
Loading…
Reference in New Issue