[GRASS-dev] Re: [GRASS GIS] #528: wxGUI cmd: r.mapcalc fails (quoting + args with spaces)

GRASS GIS trac at osgeo.org
Fri May 22 07:47:04 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 hamish):

 Hi,

 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.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/528#comment:14>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list