[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug or feature?



It appears that the internal 'time' command doesn't like a 'for' loop
yet other internal shell commands are acceptable.  Bug or feature?

[ rittle@supra ]; time echo hi
hi
     0r     0.0u     0.0s       echo hi
[ rittle@supra ]; time for (i=1 2 3) echo hi
syntax error
[ rittle@supra ]; for (i=1 2 3) echo hi
hi
hi
hi
[ rittle@supra ]; time if {~ $a b} {echo hi}
     0r     0.0u     0.0s       if {~ $a b} {echo hi}
[ rittle@supra ]; 

Thanks,
Loren