[GRASS-SVN] r30865 -
grass/branches/releasebranch_6_3/scripts/v.report
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 4 22:48:36 EDT 2008
Author: hamish
Date: 2008-04-04 22:48:35 -0400 (Fri, 04 Apr 2008)
New Revision: 30865
Modified:
grass/branches/releasebranch_6_3/scripts/v.report/v.report
Log:
don't quote var which could be empty. thanks for spotting this Maciek (merge from HEAD)
Modified: grass/branches/releasebranch_6_3/scripts/v.report/v.report
===================================================================
--- grass/branches/releasebranch_6_3/scripts/v.report/v.report 2008-04-05 02:46:16 UTC (rev 30864)
+++ grass/branches/releasebranch_6_3/scripts/v.report/v.report 2008-04-05 02:48:35 UTC (rev 30865)
@@ -150,7 +150,7 @@
exit 1
fi
#fetch the requested attribute sorted by cat:
- v.to.db -p map="$MAP" opt="$OPTION" col="$COLUMS" "$UNITSPARAM" \
+ v.to.db -p map="$MAP" opt="$OPTION" col="$COLUMS" $UNITSPARAM \
layer="$LAYER" 2> /dev/null | grep -v '^cat' | grep -v '^-1' | grep -v '^0'\
| sort -n -t'|' -k 1 | cut -d'|' -f2-4 > "$TMP2"
#make pre-table
@@ -159,7 +159,7 @@
v.category input="$MAP" layer="$LAYER" option=print | sort -n | uniq | \
grep -v '^-1' | grep -v '^0' > "$TMP1"
#make pre-table
- v.to.db -p map="$MAP" opt="$OPTION" col="$COLUMS" "$UNITSPARAM" \
+ v.to.db -p map="$MAP" opt="$OPTION" col="$COLUMS" $UNITSPARAM \
layer="$LAYER" 2> /dev/null | grep -v '^cat' | grep -v '^-1' | grep -v '^0'\
| sort -n -t'|' -k 1 > "$TMP3"
More information about the grass-commit
mailing list