mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 13:31:36 -07:00
Allow SC2243 and SC2244 to trigger with quotes, add fix
This commit is contained in:
parent
f6bc009331
commit
73822c3588
4 changed files with 28 additions and 15 deletions
|
@ -485,8 +485,11 @@ wordsCanBeEqual x y = fromMaybe True $
|
|||
-- Is this an expansion that can be quoted,
|
||||
-- e.g. $(foo) `foo` $foo (but not {foo,})?
|
||||
isQuoteableExpansion t = case t of
|
||||
T_DollarBraced {} -> True
|
||||
_ -> isCommandSubstitution t
|
||||
|
||||
isCommandSubstitution t = case t of
|
||||
T_DollarExpansion {} -> True
|
||||
T_DollarBraceCommandExpansion {} -> True
|
||||
T_Backticked {} -> True
|
||||
T_DollarBraced {} -> True
|
||||
_ -> False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue