mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 02:27:30 -07:00
Don't warn about sed '$s/foo/bar/'
This commit is contained in:
parent
d0bad6c057
commit
6ad3f557fe
1 changed files with 1 additions and 1 deletions
|
@ -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 ()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue