1 # Generate a sequence from m to n, m defaults to 1.
5 declare -i lo hi i # makes local
9 1) seq 1 "$1" ; return $? ;;
12 while let "i <= hi"; do
18 *) echo seq: usage: seq [low] high 1>&2 ; return 2 ;;
22 # like the APL `iota' function (or at least how I remember it :-)
26 1) seq 1 "$1"; return $?;;
27 *) echo "iota: usage: iota high" 1>&2; return 2;;