[GRASS-SVN] r45246 - in grass/branches/develbranch_6/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.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:28:29 EST 2011
Author: neteler
Date: 2011-01-29 16:28:29 -0800 (Sat, 29 Jan 2011)
New Revision: 45246
Modified:
grass/branches/develbranch_6/scripts/d.correlate/d.correlate
grass/branches/develbranch_6/scripts/d.out.gpsdrive/d.out.gpsdrive
grass/branches/develbranch_6/scripts/d.out.png/d.out.png
grass/branches/develbranch_6/scripts/d.polar/d.polar
grass/branches/develbranch_6/scripts/d.resize/d.resize
grass/branches/develbranch_6/scripts/d.vect.thematic/d.vect.thematic
grass/branches/develbranch_6/scripts/db.dropcol/db.dropcol
grass/branches/develbranch_6/scripts/db.droptable/db.droptable
grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr
grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr
grass/branches/develbranch_6/scripts/g.mremove/g.mremove
grass/branches/develbranch_6/scripts/i.image.mosaic/i.image.mosaic
grass/branches/develbranch_6/scripts/i.in.spotvgt/i.in.spotvgt
grass/branches/develbranch_6/scripts/i.landsat.rgb/i.landsat.rgb
grass/branches/develbranch_6/scripts/i.oif/i.oifcalc
grass/branches/develbranch_6/scripts/r.fillnulls/r.fillnulls
grass/branches/develbranch_6/scripts/r.in.srtm/r.in.srtm
grass/branches/develbranch_6/scripts/r.out.gdal/r.out.gdal.sh
grass/branches/develbranch_6/scripts/r.plane/r.plane
grass/branches/develbranch_6/scripts/r.reclass.area/r.reclass.area
grass/branches/develbranch_6/scripts/r.shaded.relief/r.shaded.relief
grass/branches/develbranch_6/scripts/r.univar.sh/r.univar.sh
grass/branches/develbranch_6/scripts/v.db.addcol/v.db.addcol
grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable
grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol
grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable
grass/branches/develbranch_6/scripts/v.db.join/v.db.join
grass/branches/develbranch_6/scripts/v.db.renamecol/v.db.renamecol
grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar
grass/branches/develbranch_6/scripts/v.db.update/v.db.update
grass/branches/develbranch_6/scripts/v.in.e00/v.in.e00
grass/branches/develbranch_6/scripts/v.in.garmin/v.in.garmin
grass/branches/develbranch_6/scripts/v.in.geonames/v.in.geonames
grass/branches/develbranch_6/scripts/v.in.gns/v.in.gns
grass/branches/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel
grass/branches/develbranch_6/scripts/v.in.mapgen/v.in.mapgen
grass/branches/develbranch_6/scripts/v.out.gpsbabel/v.out.gpsbabel
grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats
grass/branches/develbranch_6/scripts/v.univar.sh/v.univar.sh
Log:
quoting of variable fixes, esp. for windows
Modified: grass/branches/develbranch_6/scripts/d.correlate/d.correlate
===================================================================
--- grass/branches/develbranch_6/scripts/d.correlate/d.correlate 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/d.correlate/d.correlate 2011-01-30 00:28:29 UTC (rev 45246)
@@ -68,7 +68,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/develbranch_6/scripts/d.out.gpsdrive/d.out.gpsdrive
===================================================================
--- grass/branches/develbranch_6/scripts/d.out.gpsdrive/d.out.gpsdrive 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/d.out.gpsdrive/d.out.gpsdrive 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/d.out.png/d.out.png
===================================================================
--- grass/branches/develbranch_6/scripts/d.out.png/d.out.png 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/d.out.png/d.out.png 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/d.polar/d.polar
===================================================================
--- grass/branches/develbranch_6/scripts/d.polar/d.polar 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/d.polar/d.polar 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/d.resize/d.resize
===================================================================
--- grass/branches/develbranch_6/scripts/d.resize/d.resize 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/d.resize/d.resize 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/d.vect.thematic/d.vect.thematic
===================================================================
--- grass/branches/develbranch_6/scripts/d.vect.thematic/d.vect.thematic 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/d.vect.thematic/d.vect.thematic 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/db.dropcol/db.dropcol
===================================================================
--- grass/branches/develbranch_6/scripts/db.dropcol/db.dropcol 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/db.dropcol/db.dropcol 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/db.droptable/db.droptable
===================================================================
--- grass/branches/develbranch_6/scripts/db.droptable/db.droptable 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/db.droptable/db.droptable 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/db.in.ogr/db.in.ogr
===================================================================
--- grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/db.in.ogr/db.in.ogr 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/db.out.ogr/db.out.ogr
===================================================================
--- grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/db.out.ogr/db.out.ogr 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/g.mremove/g.mremove
===================================================================
--- grass/branches/develbranch_6/scripts/g.mremove/g.mremove 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/g.mremove/g.mremove 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/i.image.mosaic/i.image.mosaic
===================================================================
--- grass/branches/develbranch_6/scripts/i.image.mosaic/i.image.mosaic 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/i.image.mosaic/i.image.mosaic 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/i.in.spotvgt/i.in.spotvgt
===================================================================
--- grass/branches/develbranch_6/scripts/i.in.spotvgt/i.in.spotvgt 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/i.in.spotvgt/i.in.spotvgt 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/i.landsat.rgb/i.landsat.rgb
===================================================================
--- grass/branches/develbranch_6/scripts/i.landsat.rgb/i.landsat.rgb 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/i.landsat.rgb/i.landsat.rgb 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/i.oif/i.oifcalc
===================================================================
--- grass/branches/develbranch_6/scripts/i.oif/i.oifcalc 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/i.oif/i.oifcalc 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/r.fillnulls/r.fillnulls
===================================================================
--- grass/branches/develbranch_6/scripts/r.fillnulls/r.fillnulls 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/r.fillnulls/r.fillnulls 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/r.in.srtm/r.in.srtm
===================================================================
--- grass/branches/develbranch_6/scripts/r.in.srtm/r.in.srtm 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/r.in.srtm/r.in.srtm 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/r.out.gdal/r.out.gdal.sh
===================================================================
--- grass/branches/develbranch_6/scripts/r.out.gdal/r.out.gdal.sh 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/r.out.gdal/r.out.gdal.sh 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/r.plane/r.plane
===================================================================
--- grass/branches/develbranch_6/scripts/r.plane/r.plane 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/r.plane/r.plane 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/r.reclass.area/r.reclass.area
===================================================================
--- grass/branches/develbranch_6/scripts/r.reclass.area/r.reclass.area 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/r.reclass.area/r.reclass.area 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/r.shaded.relief/r.shaded.relief
===================================================================
--- grass/branches/develbranch_6/scripts/r.shaded.relief/r.shaded.relief 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/r.shaded.relief/r.shaded.relief 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/r.univar.sh/r.univar.sh
===================================================================
--- grass/branches/develbranch_6/scripts/r.univar.sh/r.univar.sh 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/r.univar.sh/r.univar.sh 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.db.addcol/v.db.addcol
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.addcol/v.db.addcol 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.db.addcol/v.db.addcol 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.db.addtable/v.db.addtable
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.db.dropcol/v.db.dropcol
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol 2011-01-30 00:28:29 UTC (rev 45246)
@@ -64,7 +64,7 @@
exec g.parser "$0" "$@"
fi
-PROG=`basename $0`
+PROG="`basename $0`"
#### setup temporary file
TEMPFILE="`g.tempfile pid=$$`"
Modified: grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.db.join/v.db.join
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.join/v.db.join 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.db.join/v.db.join 2011-01-30 00:28:29 UTC (rev 45246)
@@ -75,7 +75,7 @@
exec g.parser "$0" "$@"
fi
-PROG=`basename $0`
+PROG="`basename $0`"
database=`v.db.connect -gl map="$GIS_OPT_MAP" fs="|" layer="$GIS_OPT_LAYER" | cut -d'|' -f4`
driver=`v.db.connect -gl map="$GIS_OPT_MAP" fs="|" layer="$GIS_OPT_LAYER" | cut -d'|' -f5`
Modified: grass/branches/develbranch_6/scripts/v.db.renamecol/v.db.renamecol
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.renamecol/v.db.renamecol 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.db.renamecol/v.db.renamecol 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.db.univar/v.db.univar
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.db.update/v.db.update
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.update/v.db.update 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.db.update/v.db.update 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.in.e00/v.in.e00
===================================================================
--- grass/branches/develbranch_6/scripts/v.in.e00/v.in.e00 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.in.e00/v.in.e00 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.in.garmin/v.in.garmin
===================================================================
--- grass/branches/develbranch_6/scripts/v.in.garmin/v.in.garmin 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.in.garmin/v.in.garmin 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.in.geonames/v.in.geonames
===================================================================
--- grass/branches/develbranch_6/scripts/v.in.geonames/v.in.geonames 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.in.geonames/v.in.geonames 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.in.gns/v.in.gns
===================================================================
--- grass/branches/develbranch_6/scripts/v.in.gns/v.in.gns 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.in.gns/v.in.gns 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel
===================================================================
--- grass/branches/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.in.mapgen/v.in.mapgen
===================================================================
--- grass/branches/develbranch_6/scripts/v.in.mapgen/v.in.mapgen 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.in.mapgen/v.in.mapgen 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.out.gpsbabel/v.out.gpsbabel
===================================================================
--- grass/branches/develbranch_6/scripts/v.out.gpsbabel/v.out.gpsbabel 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.out.gpsbabel/v.out.gpsbabel 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.rast.stats/v.rast.stats
===================================================================
--- grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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/develbranch_6/scripts/v.univar.sh/v.univar.sh
===================================================================
--- grass/branches/develbranch_6/scripts/v.univar.sh/v.univar.sh 2011-01-30 00:27:07 UTC (rev 45245)
+++ grass/branches/develbranch_6/scripts/v.univar.sh/v.univar.sh 2011-01-30 00:28:29 UTC (rev 45246)
@@ -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