mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-10 12:21:43 +08:00
Don't warn about sed '$s/foo/bar/'
This commit is contained in:
@@ -939,7 +939,7 @@ checkSingleQuotedVariables params t@(T_SingleQuoted id s) =
|
|||||||
otherwise -> False
|
otherwise -> False
|
||||||
|
|
||||||
re = mkRegex "\\$[{(0-9a-zA-Z_]"
|
re = mkRegex "\\$[{(0-9a-zA-Z_]"
|
||||||
sedContra = mkRegex "\\$[dp]($|[^a-zA-Z])"
|
sedContra = mkRegex "\\$[dpsaic]($|[^a-zA-Z])"
|
||||||
checkSingleQuotedVariables _ _ = return ()
|
checkSingleQuotedVariables _ _ = return ()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user