I want to initialize an array in sh.
In bash that would be:
list=(`seq 1 4`)
In sh I try to do it like this:
for i in `seq 1 4`; do
list[$((i-1))]="$i"
done
I get an error though for each iteration saying:
list[0]=1: not found
What am I doing wrong and how to fix that?