[GRASS5] r.mapcalc problem

Hamish hamish_nospam at yahoo.com
Thu Apr 22 01:36:46 EDT 2004


[5.3 CVS/HEAD from a couple of weeks ago]


I'm trying to use r.mapcalc from the command line, with a map name which
contains a dash ("-"). I'm getting this error:

GRASS5.3> r.mapcalc \"a-b\"=1
invalid map: a-b
syntax error, unexpected '=', expecting $end
Parse error


The "invalid map" above doesn't exist yet, if I make something called
'a-b', the invalid map error disappears but the syntax/parse errors
remain.


does anyone know where I'm going wrong, or is this a r.mapcalc bug?

If I understand correctly, quoted map names containing operators should
be ok on both sides of the equation..



?

thanks,
Hamish




More information about the grass-dev mailing list