mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Fix 'for file; do ..' counting $file as a safe variable.
This commit is contained in:
parent
838f0ce4dc
commit
6ccb7e9129
2 changed files with 2 additions and 0 deletions
|
@ -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)]
|
||||
_ -> []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue