On Thu, 2008-07-03 at 14:59 +0200, Oliver Heins wrote:
> Hi Hugo.
> | ~$ time (n=0; for i in {1000..1}; do n=$(($n+$i)); done; echo $n)
>
> I don't know if arithmetic evaluation is a bashism, but I think the
> costs for using bc are quite high. However, I the let syntax (e.g.,
> »let "n = n +i"«) should work with all posix-shells and therefore be
> portable.its posix. the fork is also expensive, not only bc. 'let' is a bashism i think. shouldnt be used imho.
