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 <pancake_AT_youterm.com> 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.
>
>
Received on Thu Jul 03 2008 - 16:30:27 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:53:11 UTC