Suggest IFS='' as style for assigning empty vars.

This commit is contained in:
Vidar Holen 2012-11-27 20:27:07 -08:00
parent e8a2ac09c7
commit 2b2ee0a897
1 changed files with 1 additions and 0 deletions

View File

@ -1124,6 +1124,7 @@ readAssignmentWord = try $ do
value <- readArray <|> readNormalWord
spacing
when (space ++ space2 /= "") $ parseNoteAt pos ErrorC "Don't put spaces around the = in assignments."
when (space == "" && space2 /= "") $ parseNoteAt pos StyleC "Use var='' if you intended to assign the empty string."
return $ T_Assignment id variable value
readArray = do