Bug report #1885

r.mapcalc command misses apices

Added by Paolo Cavallini over 14 years ago. Updated about 14 years ago.

Status:Closed
Priority:Low
Assignee:Lorenzo Masini
Category:GRASS
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

Description

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.

History

#1 Updated by Redmine Admin about 14 years ago

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

Hopefully fixed in 5e1c5f80 (SVN r12917).

Also available in: Atom PDF