pancake, olli: thanks!
My 'site' is under heavy remodulation, tomorrow I'll focus at this :)

-h

On Thu, Jul 3, 2008 at 3:10 PM, pancake <[EMAIL PROTECTED]> wrote:
> 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.
>
>

Reply via email to