mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 01:59:27 +08:00
Case statements are now rightfully unquotable contexts
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user