Unnecessary Dollar In For Loop Low

Shell script uses $ before the iterator variable in a for loop. To fix, remove the $ from the iterator name in the loop declaration. Use $ only when referencing the variable.

Detector ID
shell/unnecessary-dollar-in-for-loop@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-