Andre Poenitz <[EMAIL PROTECTED]> writes: | 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
Wrong test really... you should test i=1 i=`expr $1 + 1` echo $i | I did not check the other shells ;-) I care a rats ass about ash... the only thing that I care about is bash and sh. -- Lgb