POV-Ray : Newsgroups : povray.unix : Testing distributed rendering script : Re: I'm interrested ;-) Server Time
28 Jul 2024 16:23:03 EDT (-0400)
  Re: I'm interrested ;-)  
From: Kari Kivisalo
Date: 1 Aug 2000 16:20:54
Message: <39873136.DA9F2EF4@kivisalo.net>
Warp wrote:
> % echo $[1+2*3]
> 7
> 
> % let A=1+2*3
> % echo $A
> 7
> 
>   You can achieve the same thing in sh using the bc program, but it's more
> heavy and takes more resources (you have to start an external program instead
> of just calculating it inside the shell itself).


In ksh:

echo $((1+2*3))
7

A=$((1+2*3))
echo $A
7

K.K.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.