[GRASS-SVN] r55206 - grass/branches/develbranch_6/scripts/db.droptable

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 25 14:16:20 PST 2013


Author: hamish
Date: 2013-02-25 14:16:20 -0800 (Mon, 25 Feb 2013)
New Revision: 55206

Modified:
   grass/branches/develbranch_6/scripts/db.droptable/db.droptable
Log:
better handle spaces in GISDBASE (#1683), bugfix on WinGrass, so candidate for backporting after testing.

Modified: grass/branches/develbranch_6/scripts/db.droptable/db.droptable
===================================================================
--- grass/branches/develbranch_6/scripts/db.droptable/db.droptable	2013-02-25 22:12:00 UTC (rev 55205)
+++ grass/branches/develbranch_6/scripts/db.droptable/db.droptable	2013-02-25 22:16:20 UTC (rev 55206)
@@ -42,8 +42,6 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename "$0"`
-
 # setting environment, so that awk works properly in all languages
 unset LC_ALL
 LC_NUMERIC=C
@@ -59,8 +57,8 @@
 trap "exitprocedure" 2 3 15
 
 ### setup enviro vars ###
-eval `g.gisenv`
-: ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
+LOCATION_NAME=`g.gisenv get=LOCATION_NAME`
+GISDBASE=`g.gisenv get=GISDBASE`
 
 table="$GIS_OPT_TABLE"
 



More information about the grass-commit mailing list