Also mention globbing in SC2206 (fixes #1626)

This commit is contained in:
Vidar Holen 2019-07-04 17:43:18 -07:00
parent 914974bd4f
commit 78b8e76066
1 changed files with 2 additions and 2 deletions

View File

@ -3095,8 +3095,8 @@ checkSplittingInArrays params t =
&& not (getBracedReference (bracedString part) `elem` variablesWithoutSpaces)
-> warn id 2206 $
if shellType params == Ksh
then "Quote to prevent word splitting, or split robustly with read -A or while read."
else "Quote to prevent word splitting, or split robustly with mapfile or read -a."
then "Quote to prevent word splitting/globbing, or split robustly with read -A or while read."
else "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a."
_ -> return ()
forCommand id =