[GRASS-SVN] r30122 - grass/trunk/scripts/d.polar
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 13 19:23:32 EST 2008
Author: hamish
Date: 2008-02-13 19:23:32 -0500 (Wed, 13 Feb 2008)
New Revision: 30122
Modified:
grass/trunk/scripts/d.polar/d.polar
Log:
quote variables
Modified: grass/trunk/scripts/d.polar/d.polar
===================================================================
--- grass/trunk/scripts/d.polar/d.polar 2008-02-14 00:21:19 UTC (rev 30121)
+++ grass/trunk/scripts/d.polar/d.polar 2008-02-14 00:23:32 UTC (rev 30122)
@@ -111,7 +111,7 @@
cleanup()
{
-\rm -f ${TMP} ${TMP}_*
+ \rm -f "${TMP}" "${TMP}_*"
}
#################################
@@ -175,7 +175,7 @@
PI=3.14159265358979323846
if [ -n "$GIS_OPT_EPS" ] || [ $GIS_FLAG_X -eq 1 ] ; then
- rm -f ${TMP}_outercircle
+ rm -f "${TMP}_outercircle"
echo "\"All Data incl. NULLs" > ${TMP}_outercircle
awk -v PI=$PI -v TOTAL=$TOTALNUMBER -v TOTALVALID=$TOTALVALIDNUMBER \
@@ -443,7 +443,7 @@
tail -n $SUBLENGTH ${TMP}_outercircle | sed "s+\$+ $SCALE $HALFFRAME+g" > ${TMP}_outercircle_lineto
cat ${TMP}_outercircle_lineto | awk '{printf "%.2f %.2f lineto\n",$1*$3+$4, $2*$3+$4 }' >> $PSOUT
-rm -f ${TMP}_outercircle_lineto
+rm -f "${TMP}_outercircle_lineto"
echo "stroke
@@ -479,7 +479,7 @@
tail -n $SUBLENGTH ${TMP}_sine_cosine_replic | sed "s+\$+ $SCALE $HALFFRAME+g" > ${TMP}_sine_cosine_replic_lineto
cat ${TMP}_sine_cosine_replic_lineto | awk '{printf "%.2f %.2f lineto\n",$1*$3+$4, $2*$3+$4 }' >> $PSOUT
-rm -f ${TMP}_sine_cosine_replic_lineto
+rm -f "${TMP}_sine_cosine_replic_lineto"
echo "stroke
%%
@@ -501,7 +501,7 @@
tail -n $SUBLENGTH ${TMP}_vector | sed "s+\$+ $SCALE $HALFFRAME+g" > ${TMP}_vector_lineto
cat ${TMP}_vector_lineto | awk '{printf "%.2f %.2f lineto\n",$1*$3+$4, $2*$3+$4 }' >> $PSOUT
-rm -f ${TMP}_vector_lineto
+rm -f "${TMP}_vector_lineto"
echo "stroke
More information about the grass-commit
mailing list