I'm used to used the following feature of bash :
for i in ${1..23} ; do echo $i ; done
This doesn't generalize. For instance, replacing 23
by even $p
does not work. As the documentation says, this is a purely syntactic feature.
What would you replace this with ?
Note : Of course, this could be done using a while and an auxiliary variable, but this is not what i'm looking for, even if it works. I'm failing back to this actually.