From 4853dce3feaffaa49e2107e39d87e9c201a5d298 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 17 Nov 2013 15:00:07 -0800 Subject: [PATCH] Fixed wrong quoting warning for foo=" "; foo --- ShellCheck/Analytics.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellCheck/Analytics.hs b/ShellCheck/Analytics.hs index 8a0bcbe..7f5e377 100644 --- a/ShellCheck/Analytics.hs +++ b/ShellCheck/Analytics.hs @@ -1408,7 +1408,7 @@ getModifiedVariables t = getReferencedVariableCommand base@(T_SimpleCommand _ _ ((T_NormalWord _ ((T_Literal _ x):_)):rest)) = case x of "export" -> concatMap getReference rest - _ -> [(base,base, x)] + _ -> [] where getReference t@(T_Assignment _ _ name _ value) = [(t, t, name)] getReference t@(T_NormalWord _ [T_Literal _ name]) | not ("-" `isPrefixOf` name) = [(t, t, name)]