Generic loop

The generic form of a for loop is:

for ELEM in LIST
do
    ...
done

However, the in LIST part is optional. When it’s not present, then it’s assumed to be in "$@". So the following for loops are equivalent:

for ELEM
do
    ...
done

for ELEM in "$@"
do
    ...
done