[GRASS-SVN] r55226 - grass/branches/develbranch_6/scripts/v.in.garmin

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 25 15:56:44 PST 2013


Author: hamish
Date: 2013-02-25 15:56:44 -0800 (Mon, 25 Feb 2013)
New Revision: 55226

Modified:
   grass/branches/develbranch_6/scripts/v.in.garmin/v.in.garmin
Log:
better handle spaces in GISDBASE (#1683)

Modified: grass/branches/develbranch_6/scripts/v.in.garmin/v.in.garmin
===================================================================
--- grass/branches/develbranch_6/scripts/v.in.garmin/v.in.garmin	2013-02-25 23:44:29 UTC (rev 55225)
+++ grass/branches/develbranch_6/scripts/v.in.garmin/v.in.garmin	2013-02-25 23:56:44 UTC (rev 55226)
@@ -105,9 +105,11 @@
 LC_NUMERIC=C
 export LC_NUMERIC
 
-eval `g.gisenv`
-: ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
-LOCATION="$GISDBASE"/"$LOCATION_NAME"/"$MAPSET"
+### setup enviro vars ###
+MAPSET=`g.gisenv get=MAPSET`
+LOCATION_NAME=`g.gisenv get=LOCATION_NAME`
+GISDBASE=`g.gisenv get=GISDBASE`
+LOCATION="$GISDBASE/$LOCATION_NAME/$MAPSET"
 
 PROG=`basename "$0"`
 



More information about the grass-commit mailing list