[GRASS-dev] [GRASS GIS] #3259: r.mapcalc graphical versio does not work with eval

#3259: r.mapcalc graphical versio does not work with eval
-------------------------+-------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.2.1
Component: wxGUI | Version: svn-trunk
Keywords: r.mapcalc | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
When using r.mapcalc wxgui version, it is not possible to utilize eval
functionality.
A valid mapcalc expression working from cli and failing from gui:
{{{
eval(a=1)
out=a
}}}

The reason is actual mapcalc expression executed:
{{{
r.mapcalc --overwrite expression=out = eval(a=1) out=a
syntax error
Parse error
ERROR: parse error
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3259&gt;
GRASS GIS <https://grass.osgeo.org>

#3259: r.mapcalc graphical versio does not work with eval
--------------------------+-------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.1
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.mapcalc
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by marisn):

* milestone: 7.2.4 => 7.8.1

Comment:

Ahh. The fun of hitting a bug and then realising that I have reported it
already some years a go. Bumping up milestone as it seems that no work on
this is going on anyway.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3259#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

#3259: r.mapcalc graphical versio does not work with eval
--------------------------+-------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.1
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.mapcalc
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by annakrat):

I don't think the problem is eval, I was able to run eval in r.mapcalc
gui. What causes the problem I think are the new lines in your example.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3259#comment:6&gt;
GRASS GIS <https://grass.osgeo.org>