Suggest IFS='' as style for assigning empty vars.
This commit is contained in:
parent
e8a2ac09c7
commit
2b2ee0a897
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue