[GRASS-SVN] r55210 - grass/branches/develbranch_6/scripts/v.in.gpsbabel

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 25 14:28:51 PST 2013


Author: hamish
Date: 2013-02-25 14:28:51 -0800 (Mon, 25 Feb 2013)
New Revision: 55210

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

Modified: grass/branches/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel
===================================================================
--- grass/branches/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel	2013-02-25 22:24:40 UTC (rev 55209)
+++ grass/branches/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel	2013-02-25 22:28:51 UTC (rev 55210)
@@ -109,10 +109,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"`
 
 #### check for gpsbabel 



More information about the grass-commit mailing list