How can I iterate through a simple range of ints using a for loop in ksh?
For example, my script currently does this...
for i in 1 2 3 4 5 6 7 do
ksh93, Bash and zsh all understand C-like for loop syntax:
for
for ((i=1; i<=9; i++)) do echo $i done
Unfortunately, while ksh and zsh understand the curly brace range syntax with constants and variables, Bash only handles constants (including Bash 4).