[GRASS-SVN] r30132 - grass/trunk/scripts/v.db.univar

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 13 19:55:35 EST 2008


Author: hamish
Date: 2008-02-13 19:55:35 -0500 (Wed, 13 Feb 2008)
New Revision: 30132

Modified:
   grass/trunk/scripts/v.db.univar/v.db.univar
Log:
quote variables

Modified: grass/trunk/scripts/v.db.univar/v.db.univar
===================================================================
--- grass/trunk/scripts/v.db.univar/v.db.univar	2008-02-14 00:54:06 UTC (rev 30131)
+++ grass/trunk/scripts/v.db.univar/v.db.univar	2008-02-14 00:55:35 UTC (rev 30132)
@@ -85,7 +85,7 @@
 
 cleanup()
 {
- \rm -f $TMP $TMP.sort
+   \rm -f "$TMP" "$TMP.sort"
 }
 
 # what to do in case of user break:
@@ -115,9 +115,9 @@
 fi
 
 if [ -z "$GIS_OPT_WHERE" ] ; then
-   db.select table=$GIS_OPT_TABLE $db $drv sql="select $GIS_OPT_COLUMN from $GIS_OPT_TABLE" -c > "$TMP"
+   db.select table="$GIS_OPT_TABLE" $db $drv sql="select $GIS_OPT_COLUMN from $GIS_OPT_TABLE" -c > "$TMP"
 else
-   db.select table=$GIS_OPT_TABLE $db $drv sql="select $GIS_OPT_COLUMN from $GIS_OPT_TABLE WHERE $GIS_OPT_WHERE" -c > "$TMP"
+   db.select table="$GIS_OPT_TABLE" $db $drv sql="select $GIS_OPT_COLUMN from $GIS_OPT_TABLE WHERE $GIS_OPT_WHERE" -c > "$TMP"
 fi
 
 



More information about the grass-commit mailing list