Fix 'for file; do ..' counting $file as a safe variable.

This commit is contained in:
Vidar Holen 2016-12-17 12:55:14 -08:00
parent 838f0ce4dc
commit 6ccb7e9129
2 changed files with 2 additions and 0 deletions

View file

@ -404,6 +404,7 @@ getModifiedVariables t =
[(t, t, fromMaybe "COPROC" name, DataArray SourceInteger)]
--Points to 'for' rather than variable
T_ForIn id str [] _ -> [(t, t, str, DataString $ SourceExternal)]
T_ForIn id str words _ -> [(t, t, str, DataString $ SourceFrom words)]
T_SelectIn id str words _ -> [(t, t, str, DataString $ SourceFrom words)]
_ -> []