From 661091a9da605a72ce8c5c23ebbf165c90d7330a Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Wed, 12 Feb 2014 18:26:41 -0800 Subject: [PATCH] Added better message for SC1007, for 'var= value' --- ShellCheck/Parser.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ShellCheck/Parser.hs b/ShellCheck/Parser.hs index 3b57f5b..06838ad 100644 --- a/ShellCheck/Parser.hs +++ b/ShellCheck/Parser.hs @@ -1734,7 +1734,8 @@ readAssignmentWord = try $ do if space == "" && space2 /= "" then do when (variable /= "IFS") $ - parseNoteAt pos InfoC 1007 $ "Note that 'var= value' (with space after equals sign) is similar to 'var=\"\"; value'." + parseNoteAt pos WarningC 1007 + "Remove space after = if trying to assign a value (for empty string, use var='' ... )." value <- readEmptyLiteral return $ T_Assignment id op variable index value else do