[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug or feature?
Loren James Rittle <rittle@comm.mot.com> writes:
> It appears that the internal 'time' command doesn't like a 'for' loop
> yet other internal shell commands are acceptable. Bug or feature?
Well. `for' is a special form. I suspect that it would be fine if you
wrapped it in a lambda.
> [ rittle@supra ]; time for (i=1 2 3) echo hi
> syntax error
> [ rittle@supra ]; for (i=1 2 3) echo hi
> hi
> hi
> hi
; time @ { for (i=1 2 3) echo hi }
hi
hi
hi
0r 0.0u 0.0s @ * {for(i=1 2 3)echo hi}
Soren