[GRASS-dev] Re: [GRASS GIS] #595: WinGRASS g.version -c fails

GRASS GIS trac at osgeo.org
Tue Sep 15 13:22:08 EDT 2009


#595: WinGRASS g.version -c fails
---------------------------+------------------------------------------------
  Reporter:  hamish        |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect        |      Status:  new                      
  Priority:  blocker       |   Milestone:  6.4.0                    
 Component:  License       |     Version:  6.4.0 RCs                
Resolution:                |    Keywords:  wingrass gpl             
  Platform:  MSWindows XP  |         Cpu:  x86-32                   
---------------------------+------------------------------------------------
Comment (by cnielsen):

 {{{
 cat ./../../COPYING | sed -f sed.script | tr -d '\012' > /src/dev_6/dist.
 i686-pc-mingw32/etc/VERSION
 sed: file sed.script line 1: Unknown option to 's'
 }}}

 I might be missing something here but when I took the contents of
 sed.script and stuck them into the cmd itself with -e it works fine:
 {{{
 cat ./../../COPYING | sed -e 's/.*$/&\\n/g' | tr -d '\012' >
 /src/dev_6/dist
 .i686-pc-mingw32/etc/VERSION
 }}}
 Is there a benefit to having it in a *.script instead?

 -Colin

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


More information about the grass-dev mailing list