I expect the value to be incremented but get the same value of h i.e. 9. When I tried this directly in terminal it's working fine but after writing in shell file value remains same. Please tell me how to increment using this method only. i=$((i+1)) is also working.
h=9
echo $h
((h=h+1))
echo $h
((h=h+8))
echo $h