#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: [email protected]
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>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev