[GRASS-dev] [GRASS GIS] #1164: newlines in sed scripts not portable for wingrass

GRASS GIS trac at osgeo.org
Sun Sep 19 03:10:10 EDT 2010


#1164: newlines in sed scripts not portable for wingrass
---------------------------+------------------------------------------------
 Reporter:  hamish         |       Owner:  grass-dev@…              
     Type:  defect         |      Status:  new                      
 Priority:  minor          |   Milestone:  6.4.1                    
Component:  Default        |     Version:  svn-develbranch6         
 Keywords:  wingrass, sed  |    Platform:  MSWindows XP             
      Cpu:  x86-64         |  
---------------------------+------------------------------------------------
 Hi,

 this is not portable for wingrass:
 {{{
 echo "abc" | sed -e 's|b|\n|'
 }}}

 on linux you get the newline:
 {{{
 a
 c
 }}}

 but in WinGrass you just get a quoted "n":
 {{{
 anc
 }}}

 damage from this is only cosmetic AFAICT (`r.in.wms -l` without xml2), but
 there may be other places where it matters more.


 Hamish

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1164>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list