From 6ad3f557fe1ef4e842a4afcbf9aa6cc7540ac3d2 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 19 Apr 2014 12:29:49 -0700 Subject: [PATCH] Don't warn about sed '$s/foo/bar/' --- ShellCheck/Analytics.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellCheck/Analytics.hs b/ShellCheck/Analytics.hs index ef6370f..bd90b38 100644 --- a/ShellCheck/Analytics.hs +++ b/ShellCheck/Analytics.hs @@ -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 ()