All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
$
for
The for loop expects the variable's name, not its value (and the name can not be specified indirectly).
for $var in * do echo "$var" done
for var in * do echo "$var" done