Re: [dwm] dwm with dzen status bar

From: pancake <pancake_AT_youterm.com>
Date: Thu, 03 Jul 2008 16:10:16 +0200

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:10:14 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:53:09 UTC