Originally Posted By: jaytea
Originally Posted By: hixxy

I also think the first parameter for for () should accept all variations of the var/set commands:


hey hixxy :P i think it would be more sensible to have the first (and third) parameter function equivalent to how the command parameter in $findfile() does; it would be more aligned with for() implementations in other languages, wouldn't be entirely out of place, and would make the command suitable for a wider variety of applications


Could do,

But do you think there are many commands other than the variable related ones that have a place in for () ?

Things like this, for example, wouldn't really be very good methods to achieve something:

Code:
var %i = 10 
for (hadd -m test test 1,$hget(test,test) <= %i,hinc test test) {
  echo -a $hget(test,test)
}