local _i=0 in bash declares _i as string
Opened this issue · 0 comments
tthk commented
Noticed that in bash, your code:
local _i=0
then later
_i=$i+1
ends up with:
_i=0+1+1+1
Intended code for bash should be (not tested on other shells):
local -i _i=0