-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1086
Joachim Ansorg edited this page Nov 12, 2021
·
4 revisions
for $var in *
do
echo "$var"
done
for var in *
do
echo "$var"
done
The variable is named var
, and can be expanded to its value with $var
.
The for
loop expects the variable's name, not its value (and the name can not be specified indirectly).
None.