[GRASS-dev] [GRASS GIS] #2139: g.parser does not allow newline character in option value for Python scripts

GRASS GIS trac at osgeo.org
Sat Nov 30 05:44:24 PST 2013


#2139: g.parser does not allow newline character in option value for Python
scripts
----------------------------------------------------+-----------------------
 Reporter:  wenzeslaus                              |       Owner:  grass-dev@…              
     Type:  defect                                  |      Status:  new                      
 Priority:  normal                                  |   Milestone:  7.0.0                    
Component:  Parser                                  |     Version:  svn-trunk                
 Keywords:  g.parser, scripts, newline, line break  |    Platform:  All                      
      Cpu:  Unspecified                             |  
----------------------------------------------------+-----------------------

Comment(by glynn):

 Replying to [ticket:2139 wenzeslaus]:

 > Are there other suggestions, e.g. for some fast (in any sense)
 implementation?

 r58339 adds a -n switch to g.parser to separate options with a null
 character rather an newline, and modifies grass.script.parser() to use
 that option.

 This needs to be tested on Windows.

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



More information about the grass-dev mailing list