[GRASS-dev] Re: [GRASS GIS] #604: /usr/lib/grass64/etc/grass-run.sh does not work properly when called by gis.m to execute in a external xterm

GRASS GIS trac at osgeo.org
Fri May 15 23:57:18 EDT 2009


#604: /usr/lib/grass64/etc/grass-run.sh does not work properly when called by
gis.m to execute in a external xterm
-----------------------+----------------------------------------------------
  Reporter:  frankie   |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect    |      Status:  new                      
  Priority:  critical  |   Milestone:  6.4.0                    
 Component:  Tcl       |     Version:  6.4.0 RCs                
Resolution:            |    Keywords:  xterm                    
  Platform:  Linux     |         Cpu:  Unspecified              
-----------------------+----------------------------------------------------
Comment (by hamish):

 Replying to [comment:7 glynn]:
 > Replying to [comment:5 hamish]:
 > > > not sure how to fix it in sh
 > >
 > > this patch seems to work:
  {{{
  -"$@"
  +eval "$@"
  }}}
 >
 > This is bogus; it will cause the argument list to be re-parsed.

 do you have a better suggestion then? That's the best I got.

 FWIW the above successfully runs this via "Run in Xterm":
 {{{
  v.db.select roads where="label ~ 'highway'"
 }}}

 (set DEBUG=1 to avoid window closing after completion; but then debug
 level 1 is somewhat overused so many messages to sort through)


 with the above patch what's a case that fails?
 at leaast it's a step up from the last version which wouldn't run anything
 with arguments at all.


 Hamish

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


More information about the grass-dev mailing list