I'm currently trying to find the bug in the following piece of bash code:
for ((v=1; v<=${config[vnc_number]}; v++))
do
        # Do something here
done
for ((l=1; l<=${config[number]}; l++))
do
        # And do something here
done
Inside the loops I'm just creating a few VMs but think this is irrelevant for this question.
The values of config[vnc_number] and config[number] are defined in another file but reading these out works just fine, I tried it.
The first loop works just fine but the wierd thing is that in the second loop it throws the error:
   create_vms.sh: line 109: ((: l<=3
   2: syntax error in expression (error token is "2")
I tried various things to fix it but nothing seems to work so I am asking you guys. Thanks in advance for the help.
