[GRASS-SVN] r45245 - in grass/branches/releasebranch_6_4/scripts: d.correlate d.out.gpsdrive d.out.png d.polar d.resize d.vect.thematic db.dropcol db.droptable db.in.ogr db.out.ogr g.mremove i.image.mosaic i.in.spotvgt i.landsat.rgb i.oif r.fillnulls r.in.srtm r.out.gdal r.plane r.reclass.area r.regression.line r.shaded.relief r.univar.sh v.db.addcol v.db.addtable v.db.dropcol v.db.droptable v.db.join v.db.renamecol v.db.univar v.db.update v.in.e00 v.in.garmin v.in.geonames v.in.gns v.in.gpsbabel v.in.mapgen v.out.gpsbabel v.rast.stats v.univar.sh

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 29 19:27:07 EST 2011


Author: neteler
Date: 2011-01-29 16:27:07 -0800 (Sat, 29 Jan 2011)
New Revision: 45245

Modified:
   grass/branches/releasebranch_6_4/scripts/d.correlate/d.correlate
   grass/branches/releasebranch_6_4/scripts/d.out.gpsdrive/d.out.gpsdrive
   grass/branches/releasebranch_6_4/scripts/d.out.png/d.out.png
   grass/branches/releasebranch_6_4/scripts/d.polar/d.polar
   grass/branches/releasebranch_6_4/scripts/d.resize/d.resize
   grass/branches/releasebranch_6_4/scripts/d.vect.thematic/d.vect.thematic
   grass/branches/releasebranch_6_4/scripts/db.dropcol/db.dropcol
   grass/branches/releasebranch_6_4/scripts/db.droptable/db.droptable
   grass/branches/releasebranch_6_4/scripts/db.in.ogr/db.in.ogr
   grass/branches/releasebranch_6_4/scripts/db.out.ogr/db.out.ogr
   grass/branches/releasebranch_6_4/scripts/g.mremove/g.mremove
   grass/branches/releasebranch_6_4/scripts/i.image.mosaic/i.image.mosaic
   grass/branches/releasebranch_6_4/scripts/i.in.spotvgt/i.in.spotvgt
   grass/branches/releasebranch_6_4/scripts/i.landsat.rgb/i.landsat.rgb
   grass/branches/releasebranch_6_4/scripts/i.oif/i.oifcalc
   grass/branches/releasebranch_6_4/scripts/r.fillnulls/r.fillnulls
   grass/branches/releasebranch_6_4/scripts/r.in.srtm/r.in.srtm
   grass/branches/releasebranch_6_4/scripts/r.out.gdal/r.out.gdal.sh
   grass/branches/releasebranch_6_4/scripts/r.plane/r.plane
   grass/branches/releasebranch_6_4/scripts/r.reclass.area/r.reclass.area
   grass/branches/releasebranch_6_4/scripts/r.regression.line/r.regression.line
   grass/branches/releasebranch_6_4/scripts/r.shaded.relief/r.shaded.relief
   grass/branches/releasebranch_6_4/scripts/r.univar.sh/r.univar.sh
   grass/branches/releasebranch_6_4/scripts/v.db.addcol/v.db.addcol
   grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable
   grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol
   grass/branches/releasebranch_6_4/scripts/v.db.droptable/v.db.droptable
   grass/branches/releasebranch_6_4/scripts/v.db.join/v.db.join
   grass/branches/releasebranch_6_4/scripts/v.db.renamecol/v.db.renamecol
   grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar
   grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update
   grass/branches/releasebranch_6_4/scripts/v.in.e00/v.in.e00
   grass/branches/releasebranch_6_4/scripts/v.in.garmin/v.in.garmin
   grass/branches/releasebranch_6_4/scripts/v.in.geonames/v.in.geonames
   grass/branches/releasebranch_6_4/scripts/v.in.gns/v.in.gns
   grass/branches/releasebranch_6_4/scripts/v.in.gpsbabel/v.in.gpsbabel
   grass/branches/releasebranch_6_4/scripts/v.in.mapgen/v.in.mapgen
   grass/branches/releasebranch_6_4/scripts/v.out.gpsbabel/v.out.gpsbabel
   grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats
   grass/branches/releasebranch_6_4/scripts/v.univar.sh/v.univar.sh
Log:
quoting of variable fixes, esp. for windows

Modified: grass/branches/releasebranch_6_4/scripts/d.correlate/d.correlate
===================================================================
--- grass/branches/releasebranch_6_4/scripts/d.correlate/d.correlate	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/d.correlate/d.correlate	2011-01-30 00:27:07 UTC (rev 45245)
@@ -62,7 +62,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/d.out.gpsdrive/d.out.gpsdrive
===================================================================
--- grass/branches/releasebranch_6_4/scripts/d.out.gpsdrive/d.out.gpsdrive	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/d.out.gpsdrive/d.out.gpsdrive	2011-01-30 00:27:07 UTC (rev 45245)
@@ -89,7 +89,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/d.out.png/d.out.png
===================================================================
--- grass/branches/releasebranch_6_4/scripts/d.out.png/d.out.png	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/d.out.png/d.out.png	2011-01-30 00:27:07 UTC (rev 45245)
@@ -46,7 +46,7 @@
 
 g.message -w "This module has been superseded. Please use d.out.file instead."
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/d.polar/d.polar
===================================================================
--- grass/branches/releasebranch_6_4/scripts/d.polar/d.polar	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/d.polar/d.polar	2011-01-30 00:27:07 UTC (rev 45245)
@@ -57,7 +57,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/d.resize/d.resize
===================================================================
--- grass/branches/releasebranch_6_4/scripts/d.resize/d.resize	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/d.resize/d.resize	2011-01-30 00:27:07 UTC (rev 45245)
@@ -42,7 +42,7 @@
 	exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/d.vect.thematic/d.vect.thematic
===================================================================
--- grass/branches/releasebranch_6_4/scripts/d.vect.thematic/d.vect.thematic	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/d.vect.thematic/d.vect.thematic	2011-01-30 00:27:07 UTC (rev 45245)
@@ -232,7 +232,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/db.dropcol/db.dropcol
===================================================================
--- grass/branches/releasebranch_6_4/scripts/db.dropcol/db.dropcol	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/db.dropcol/db.dropcol	2011-01-30 00:27:07 UTC (rev 45245)
@@ -53,7 +53,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/db.droptable/db.droptable
===================================================================
--- grass/branches/releasebranch_6_4/scripts/db.droptable/db.droptable	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/db.droptable/db.droptable	2011-01-30 00:27:07 UTC (rev 45245)
@@ -42,7 +42,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 # setting environment, so that awk works properly in all languages
 unset LC_ALL

Modified: grass/branches/releasebranch_6_4/scripts/db.in.ogr/db.in.ogr
===================================================================
--- grass/branches/releasebranch_6_4/scripts/db.in.ogr/db.in.ogr	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/db.in.ogr/db.in.ogr	2011-01-30 00:27:07 UTC (rev 45245)
@@ -59,7 +59,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 # setting environment, so that awk works properly in all languages
 unset LC_ALL

Modified: grass/branches/releasebranch_6_4/scripts/db.out.ogr/db.out.ogr
===================================================================
--- grass/branches/releasebranch_6_4/scripts/db.out.ogr/db.out.ogr	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/db.out.ogr/db.out.ogr	2011-01-30 00:27:07 UTC (rev 45245)
@@ -62,7 +62,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 # setting environment, so that awk works properly in all languages
 unset LC_ALL

Modified: grass/branches/releasebranch_6_4/scripts/g.mremove/g.mremove
===================================================================
--- grass/branches/releasebranch_6_4/scripts/g.mremove/g.mremove	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/g.mremove/g.mremove	2011-01-30 00:27:07 UTC (rev 45245)
@@ -101,7 +101,7 @@
 : ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
 LOCATION=$GISDBASE/$LOCATION_NAME/$MAPSET
 
-program=`basename $0`
+PROG="`basename $0`"
 
 g.message "Collecting map names for current mapset <$MAPSET>..."
 

Modified: grass/branches/releasebranch_6_4/scripts/i.image.mosaic/i.image.mosaic
===================================================================
--- grass/branches/releasebranch_6_4/scripts/i.image.mosaic/i.image.mosaic	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/i.image.mosaic/i.image.mosaic	2011-01-30 00:27:07 UTC (rev 45245)
@@ -69,7 +69,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/i.in.spotvgt/i.in.spotvgt
===================================================================
--- grass/branches/releasebranch_6_4/scripts/i.in.spotvgt/i.in.spotvgt	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/i.in.spotvgt/i.in.spotvgt	2011-01-30 00:27:07 UTC (rev 45245)
@@ -171,7 +171,7 @@
 
 if [ -n "$GIS_OPT_FILE" ] ; then
     SPOTDIR="`dirname $GIS_OPT_FILE`"
-    SPOTNAME=`basename $GIS_OPT_FILE .HDF`
+    SPOTNAME=`basename "$GIS_OPT_FILE" .HDF`
 fi
 
 if [ -n "$GIS_OPT_RAST" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/i.landsat.rgb/i.landsat.rgb
===================================================================
--- grass/branches/releasebranch_6_4/scripts/i.landsat.rgb/i.landsat.rgb	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/i.landsat.rgb/i.landsat.rgb	2011-01-30 00:27:07 UTC (rev 45245)
@@ -92,7 +92,7 @@
 LC_NUMERIC=C
 export LC_NUMERIC
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 BLUE="$GIS_OPT_BLUE"
 GREEN="$GIS_OPT_GREEN"

Modified: grass/branches/releasebranch_6_4/scripts/i.oif/i.oifcalc
===================================================================
--- grass/branches/releasebranch_6_4/scripts/i.oif/i.oifcalc	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/i.oif/i.oifcalc	2011-01-30 00:27:07 UTC (rev 45245)
@@ -15,7 +15,7 @@
     exit 1
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/r.fillnulls/r.fillnulls
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.fillnulls/r.fillnulls	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/r.fillnulls/r.fillnulls	2011-01-30 00:27:07 UTC (rev 45245)
@@ -66,8 +66,9 @@
     export CMDLINE
     exec g.parser "$0" "$@"
 fi
-PROG=`basename $0`
 
+PROG="`basename $0`"
+
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then
     g.message -e "awk required, please install awk or gawk first"
@@ -101,8 +102,6 @@
 # shell check for user break (signal list: trap -l)
 trap "exitprocedure" 2 3 15
 
-program=`basename $0`
-
 #test:
 if [ ! $GIS_OPT_INPUT ]
 then

Modified: grass/branches/releasebranch_6_4/scripts/r.in.srtm/r.in.srtm
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.in.srtm/r.in.srtm	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/r.in.srtm/r.in.srtm	2011-01-30 00:27:07 UTC (rev 45245)
@@ -89,7 +89,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/r.out.gdal/r.out.gdal.sh
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.out.gdal/r.out.gdal.sh	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/r.out.gdal/r.out.gdal.sh	2011-01-30 00:27:07 UTC (rev 45245)
@@ -74,7 +74,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 g.message -w "This module is superseded and will be removed in future \
 versions of GRASS. Use the much faster r.out.gdal instead."

Modified: grass/branches/releasebranch_6_4/scripts/r.plane/r.plane
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.plane/r.plane	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/r.plane/r.plane	2011-01-30 00:27:07 UTC (rev 45245)
@@ -77,7 +77,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/r.reclass.area/r.reclass.area
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.reclass.area/r.reclass.area	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/r.reclass.area/r.reclass.area	2011-01-30 00:27:07 UTC (rev 45245)
@@ -61,7 +61,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/r.regression.line/r.regression.line
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.regression.line/r.regression.line	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/r.regression.line/r.regression.line	2011-01-30 00:27:07 UTC (rev 45245)
@@ -58,7 +58,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/r.shaded.relief/r.shaded.relief
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.shaded.relief/r.shaded.relief	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/r.shaded.relief/r.shaded.relief	2011-01-30 00:27:07 UTC (rev 45245)
@@ -122,7 +122,7 @@
 #nsres=`g.region -g | grep 'nsres=' | sed s/nsres=//`
 #ewres=`g.region -g | grep 'ewres=' | sed s/ewres=//`
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 # setting environment, so that awk works properly in all languages
 unset LC_ALL

Modified: grass/branches/releasebranch_6_4/scripts/r.univar.sh/r.univar.sh
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.univar.sh/r.univar.sh	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/r.univar.sh/r.univar.sh	2011-01-30 00:27:07 UTC (rev 45245)
@@ -49,9 +49,8 @@
 g.message -w "This module is superseded and will be removed in future \
   versions of GRASS. Use the much faster r.univar instead." 
 
+PROG="`basename $0`"
 
-PROG=`basename $0`
-
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then
     g.message -e "awk required, please install awk or gawk first" 

Modified: grass/branches/releasebranch_6_4/scripts/v.db.addcol/v.db.addcol
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.addcol/v.db.addcol	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.db.addcol/v.db.addcol	2011-01-30 00:27:07 UTC (rev 45245)
@@ -63,7 +63,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename "$0"`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable	2011-01-30 00:27:07 UTC (rev 45245)
@@ -64,7 +64,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol	2011-01-30 00:27:07 UTC (rev 45245)
@@ -62,7 +62,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### setup temporary file
 TEMPFILE="`g.tempfile pid=$$`"

Modified: grass/branches/releasebranch_6_4/scripts/v.db.droptable/v.db.droptable
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.droptable/v.db.droptable	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.db.droptable/v.db.droptable	2011-01-30 00:27:07 UTC (rev 45245)
@@ -58,7 +58,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/v.db.join/v.db.join
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.join/v.db.join	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.db.join/v.db.join	2011-01-30 00:27:07 UTC (rev 45245)
@@ -75,7 +75,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 driver=`v.db.connect -g map="$GIS_OPT_MAP" fs=";" | grep "^$GIS_OPT_LAYER" | cut -d';' -f5`
 database=`v.db.connect -g map="$GIS_OPT_MAP" fs=";" | grep "^$GIS_OPT_LAYER" | cut -d';' -f4`

Modified: grass/branches/releasebranch_6_4/scripts/v.db.renamecol/v.db.renamecol
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.renamecol/v.db.renamecol	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.db.renamecol/v.db.renamecol	2011-01-30 00:27:07 UTC (rev 45245)
@@ -62,9 +62,8 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
-
 # what to do in case of user break:
 exitprocedure()
 {

Modified: grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar	2011-01-30 00:27:07 UTC (rev 45245)
@@ -63,7 +63,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update	2011-01-30 00:27:07 UTC (rev 45245)
@@ -75,7 +75,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/v.in.e00/v.in.e00
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.in.e00/v.in.e00	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.in.e00/v.in.e00	2011-01-30 00:27:07 UTC (rev 45245)
@@ -65,7 +65,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/v.in.garmin/v.in.garmin
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.in.garmin/v.in.garmin	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.in.garmin/v.in.garmin	2011-01-30 00:27:07 UTC (rev 45245)
@@ -109,7 +109,7 @@
 : ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
 LOCATION="$GISDBASE"/"$LOCATION_NAME"/"$MAPSET"
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 if [ $GIS_FLAG_U -eq 0 ] ; then
     #### check for gpstrans

Modified: grass/branches/releasebranch_6_4/scripts/v.in.geonames/v.in.geonames
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.in.geonames/v.in.geonames	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.in.geonames/v.in.geonames	2011-01-30 00:27:07 UTC (rev 45245)
@@ -57,7 +57,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then
@@ -80,8 +80,8 @@
     if [ -n "$GIS_OPT_VECT" ] ; then
        FILE="$GIS_OPT_VECT"
     else
-       FILE=`basename $FILEORIG .txt`
-       FILE=`basename $FILE .csv`
+       FILE=`basename "$FILEORIG" .txt`
+       FILE=`basename "$FILE" .csv`
     fi
 fi
 

Modified: grass/branches/releasebranch_6_4/scripts/v.in.gns/v.in.gns
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.in.gns/v.in.gns	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.in.gns/v.in.gns	2011-01-30 00:27:07 UTC (rev 45245)
@@ -57,7 +57,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then
@@ -80,7 +80,7 @@
     if [ -n "$GIS_OPT_VECT" ] ; then
        FILE="$GIS_OPT_VECT"
     else
-       FILE=`basename $FILEORIG .txt`
+       FILE=`basename "$FILEORIG" .txt`
     fi
 fi
 

Modified: grass/branches/releasebranch_6_4/scripts/v.in.gpsbabel/v.in.gpsbabel
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.in.gpsbabel/v.in.gpsbabel	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.in.gpsbabel/v.in.gpsbabel	2011-01-30 00:27:07 UTC (rev 45245)
@@ -113,7 +113,7 @@
 : ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
 LOCATION="$GISDBASE"/"$LOCATION_NAME"/"$MAPSET"
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check for gpsbabel 
  if [ ! -x "`which gpsbabel`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/v.in.mapgen/v.in.mapgen
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.in.mapgen/v.in.mapgen	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.in.mapgen/v.in.mapgen	2011-01-30 00:27:07 UTC (rev 45245)
@@ -59,7 +59,7 @@
   exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/v.out.gpsbabel/v.out.gpsbabel
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.out.gpsbabel/v.out.gpsbabel	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.out.gpsbabel/v.out.gpsbabel	2011-01-30 00:27:07 UTC (rev 45245)
@@ -124,7 +124,7 @@
 : ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
 LOCATION="$GISDBASE"/"$LOCATION_NAME"/"$MAPSET"
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check for gpsbabel 
 if [ ! -x "`which gpsbabel`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats	2011-01-30 00:27:07 UTC (rev 45245)
@@ -75,7 +75,7 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then

Modified: grass/branches/releasebranch_6_4/scripts/v.univar.sh/v.univar.sh
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.univar.sh/v.univar.sh	2011-01-30 00:10:58 UTC (rev 45244)
+++ grass/branches/releasebranch_6_4/scripts/v.univar.sh/v.univar.sh	2011-01-30 00:27:07 UTC (rev 45245)
@@ -66,7 +66,7 @@
 g.message -w "This module is superseded and will be removed in future \
   versions of GRASS. Use the v.univar instead."
 
-PROG=`basename $0`
+PROG="`basename $0`"
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then



More information about the grass-commit mailing list