On Fri, Oct 11, 2002 at 01:24:33PM +0200, Lars Gullik Bjønnes wrote:
> |        num=`expr $num + 1`
> 
> couldn't this just be written as
> 
> let num=$num+1
> 
> ?? Wouldn't that be a bit more portable?

Short test:

poenitz@millo:~ > ash
$ i=1
$ let j=$i+1
let: not found
$ echo `expr $i + 1`
2

I did not check the other shells ;-)

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to