[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
Tue May 19 18:59:01 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 glynn):

 Replying to [comment:19 hamish]:
 > ok, with r37291 something finally works-

 Okay, that's essentially the code which "term" uses. But you can simplify
 it a bit, as there's no need to split $cmd into $cmd_exe and $args; this
 should work just as well:

 {{{
 eval [list exec -- $env(GISBASE)/etc/grass-xterm-wrapper -name xterm-grass
 -e $env(GISBASE)/etc/grass-run.sh] $cmd &
 }}}

 After all, the command name is just the first argument to grass-run.sh.

 > it splits this up by spaces:
 {{{
 v.db.select roads where={label ~ 'highway'}
 }}}

 Yep; a brace-delimited string must have the braces at the beginning and
 end; you can't put them in the middle like with quotes in bash.

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


More information about the grass-dev mailing list