[GRASS-dev] Re: [GRASS GIS] #714: spawn.c differences between 6.4 and 6.5

GRASS GIS trac at osgeo.org
Thu Jan 28 08:56:59 EST 2010


#714: spawn.c differences between 6.4 and 6.5
---------------------------+------------------------------------------------
  Reporter:  neteler       |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect        |      Status:  reopened                 
  Priority:  critical      |   Milestone:  6.4.0                    
 Component:  default       |     Version:  6.4.0 RCs                
Resolution:                |    Keywords:                           
  Platform:  MSWindows XP  |         Cpu:  Unspecified              
---------------------------+------------------------------------------------
Comment (by glynn):

 Replying to [comment:16 neteler]:

 > I assume that this is also needed.

 Only for Gentoo, AFAIK, but it won't harm elsewhere (most programs don't
 care about `argv[0]`).

 If you run a script via the shell (manually or with system()), `argv[0]`
 is set to the interpreter (normally to the exact path following the #!,
 although in the case of the "`#!/usr/bin/env python`" trick, `argv[0]`
 will be just "python").

 So the updated version simulates "normal" execution.

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


More information about the grass-dev mailing list