[GRASS-user] Spatial Statistics

Glynn Clements glynn at gclements.plus.com
Fri Mar 9 02:48:39 EST 2007


Dr. Manuel Seeger wrote:

> > I have fixed that - "let" is a bash command but not shell.
> > Change line 96 (where the "let" is) to
> >    n=`expr $n + 1`
> >
> 
> I changed this in v.db.addcol and it behaves somehow strange, but now it 
> works....:
> it creates the table, it seems to calculate right, but gives this echo:
> Adding column <dgm_n>
> [: 96: expr 1+1: bad number

You must have spaces around the "+" sign:

	$ expr 1 + 1
	2
	$ expr 1+1
	1+1

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list