mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Case statements are now rightfully unquotable contexts
This commit is contained in:
parent
2052adffef
commit
ba5bb488d1
1 changed files with 1 additions and 0 deletions
|
@ -404,6 +404,7 @@ inUnquotableContext tree t =
|
|||
T_Assignment _ _ _ -> True
|
||||
T_Redirecting _ _ _ -> False
|
||||
T_DoubleQuoted _ _ -> True
|
||||
T_CaseExpression _ _ _ -> True
|
||||
T_ForIn _ _ _ _ -> True -- Pragmatically assume it's desirable here
|
||||
x -> case Map.lookup (getId x) tree of
|
||||
Nothing -> False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue