mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Stop treating backticks as literals.
This commit is contained in:
parent
0cbbee7b89
commit
396541f3c2
3 changed files with 6 additions and 3 deletions
|
@ -82,6 +82,7 @@ willSplit x =
|
|||
case x of
|
||||
T_DollarBraced _ _ -> True
|
||||
T_DollarExpansion _ _ -> True
|
||||
T_Backticked _ _ -> True
|
||||
T_BraceExpansion _ s -> True
|
||||
T_Extglob _ _ _ -> True
|
||||
T_NormalWord _ l -> any willSplit l
|
||||
|
@ -106,6 +107,7 @@ deadSimple (T_SingleQuoted _ s) = [s]
|
|||
deadSimple (T_DollarBraced _ _) = ["${VAR}"]
|
||||
deadSimple (T_DollarArithmetic _ _) = ["${VAR}"]
|
||||
deadSimple (T_DollarExpansion _ _) = ["${VAR}"]
|
||||
deadSimple (T_Backticked _ _) = ["${VAR}"]
|
||||
deadSimple (T_Pipeline _ [x]) = deadSimple x
|
||||
deadSimple (T_Literal _ x) = [x]
|
||||
deadSimple (T_SimpleCommand _ vars words) = concatMap (deadSimple) words
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue