`$`s inside `((` are not necessary: `for (( i=0; i<stack_size ; i++ )); do`