[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
Sat May 16 16:43:37 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:11 hamish]:
> Replying to [comment:6 glynn]:
> > No, the script itself is correct. How is it being called?
>
>
http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/gui/tcltk/gis.m/runandoutput.tcl#L227
Okay; it appears to be a bug in Gronsole::run_xterm
(lib/gtcltk/gronsole.tcl):
{{{
exec -- $env(GISBASE)/etc/grass-xterm-wrapper -name xterm-grass -e
env(GISBASE)/etc/grass-run.sh $cmd &
}}}
The command is being treated as a string, and passed as a single argument.
It should be a list, and each element should be a separate argument to
"exec". See the "term" procedure in runandoutput.tcl for an example of
calling "exec" with a list of arguments.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/604#comment:13>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list