Why does a for-loop not require explicitly specifying the set of values of the loop variable? [duplicate]
up vote
1
down vote
favorite
This question already has an answer here:
Bash “for” loop without a “in foo bar…” part
2 answers
I read a command from https://unix.stackexchange.com/a/175845/674 Why can $ bash -c 'for f do echo "$f";done' bash a b c a b c output the same as $ bash -c 'for f in "$@"; do echo "$f";done' bash a b c a b c ? Why does a for-loop not require explicitly specifying the set of values of the loop variable, as in "$@" and ; ? Thanks.
bash
share | improve this question
asked ...