[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
Thu May 14 23:37:33 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:4 hamish]:
 > not sure how to fix it in sh

 this patch seems to work:
 {{{
 Index: lib/init/grass-run.src
 ===================================================================
 --- lib/init/grass-run.src      (revision 37238)
 +++ lib/init/grass-run.src      (working copy)
 @@ -26,7 +26,7 @@
  echo

  # run command
 -"$@"
 +eval "$@"

  EXIT_VAL=$?
  if [ $EXIT_VAL -ne 0 ] ; then
 }}}


 `exec` is no good because it takes over control from the script.


 ?,
 Hamish

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


More information about the grass-dev mailing list