Bug report #1885

r.mapcalc command misses apices

Added by Paolo Cavallini almost 15 years ago. Updated over 14 years ago.

Assignee:Lorenzo Masini
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:11945


If we run r.mapcalc in graphic mode, then we copy the resulting command in the GRASS shell, it throws an error, eg:

r.mapcalc raster_sum=((raster1+raster2))
bash: syntax error near unexpected token @('

If we add apices, it works:

r.mapcalc raster_sum='((raster1+raster2))'

same if we remove the parentheses:

r.mapcalc raster_sum=raster1+raster2

Looks an easy fix.


#1 Updated by Redmine Admin over 14 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Hopefully fixed in 5e1c5f80 (SVN r12917).

Also available in: Atom PDF