mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 22:38:50 +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
|
||||
|
||||
re = mkRegex "\\$[{(0-9a-zA-Z_]"
|
||||
sedContra = mkRegex "\\$[dp]($|[^a-zA-Z])"
|
||||
sedContra = mkRegex "\\$[dpsaic]($|[^a-zA-Z])"
|
||||
checkSingleQuotedVariables _ _ = return ()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user