mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 02:27:30 -07:00
Also mention globbing in SC2206 (fixes #1626)
This commit is contained in:
parent
914974bd4f
commit
78b8e76066
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue