mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-30 11:39:20 -07:00
Fix parsing of [[ a =~ {$var} ]]
This commit is contained in:
parent
86999ded1f
commit
40136fe249
2 changed files with 3 additions and 2 deletions
|
@ -2057,6 +2057,7 @@ prop_checkUnused29= verifyNotTree checkUnusedAssignments "var=(a b); declare -p
|
|||
prop_checkUnused30= verifyTree checkUnusedAssignments "let a=1"
|
||||
prop_checkUnused31= verifyTree checkUnusedAssignments "let 'a=1'"
|
||||
prop_checkUnused32= verifyTree checkUnusedAssignments "let a=b=c; echo $a"
|
||||
prop_checkUnused33= verifyNotTree checkUnusedAssignments "a=foo; [[ foo =~ ^{$a}$ ]]"
|
||||
checkUnusedAssignments params t = execWriter (mapM_ warnFor unused)
|
||||
where
|
||||
flow = variableFlow params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue