Script executes loop only once
You are using #! /bin/sh
. {1..10}
is a bash extension, not standard shell. Bash would expand {1..10}
into 10 words,for a standard shell it is just one word.
You are using #! /bin/sh
. {1..10}
is a bash extension, not standard shell. Bash would expand {1..10}
into 10 words,for a standard shell it is just one word.