[GRASS-SVN] r40713 - grass/branches/develbranch_6/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 27 19:23:22 EST 2010


Author: glynn
Date: 2010-01-27 19:23:21 -0500 (Wed, 27 Jan 2010)
New Revision: 40713

Modified:
   grass/branches/develbranch_6/lib/gis/parser.c
Log:
Quote $GRASS_WISH


Modified: grass/branches/develbranch_6/lib/gis/parser.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/parser.c	2010-01-28 00:22:02 UTC (rev 40712)
+++ grass/branches/develbranch_6/lib/gis/parser.c	2010-01-28 00:23:21 UTC (rev 40713)
@@ -1964,14 +1964,14 @@
 
 #ifdef __MINGW32__
     if (getenv("GRASS_DEBUG_GUI"))
-	fp = G_popen("tee gui_dump.tcl | %GRASS_WISH%", "w");
+	fp = G_popen("tee gui_dump.tcl | \"%GRASS_WISH%\"", "w");
     else
-	fp = G_popen("%GRASS_WISH%", "w");
+	fp = G_popen("\"%GRASS_WISH%\"", "w");
 #else
     if (getenv("GRASS_DEBUG_GUI"))
-	fp = G_popen("tee gui_dump.tcl | $GRASS_WISH", "w");
+	fp = G_popen("tee gui_dump.tcl | '$GRASS_WISH'", "w");
     else
-	fp = G_popen("$GRASS_WISH", "w");
+	fp = G_popen("'$GRASS_WISH'", "w");
 #endif
 
     if (!fp)



More information about the grass-commit mailing list