[GRASS-dev] Re: [GRASS GIS] #528: wxGUI cmd: r.mapcalc fails
(quoting + args with spaces)
GRASS GIS
trac at osgeo.org
Sat May 23 07:49:28 EDT 2009
#528: wxGUI cmd: r.mapcalc fails (quoting + args with spaces)
-----------------------+----------------------------------------------------
Reporter: neteler | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: critical | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by martinl):
Replying to [comment:14 hamish]:
> I just added a patch to this ticket (vs devbr6) which roughly uses
`shlex.split(command)` to parse the command string in a shell-like way. It
doesn't actually work but I think it gets close. something like the
`command = ' '.join(command)` from the Xterm fn is happening so it just
tries to execute the first letter. Hopefully a more learned pythoner can
quickly finish the job from here.
Modified path applied in trunk (r37395), devbr6 (r37396) and relbr64
(r37397).
Testing welcomed ...
Martin
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/528#comment:15>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list