[GRASS-SVN] r40756 - grass/branches/releasebranch_6_4/scripts/v.colors

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 31 19:12:53 EST 2010


Author: hamish
Date: 2010-01-31 19:12:52 -0500 (Sun, 31 Jan 2010)
New Revision: 40756

Modified:
   grass/branches/releasebranch_6_4/scripts/v.colors/v.colors
Log:
quote pathnames (merge from devbr6 r40747)

Modified: grass/branches/releasebranch_6_4/scripts/v.colors/v.colors
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.colors/v.colors	2010-01-31 16:53:52 UTC (rev 40755)
+++ grass/branches/releasebranch_6_4/scripts/v.colors/v.colors	2010-02-01 00:12:52 UTC (rev 40756)
@@ -167,8 +167,8 @@
 
 if [ -n "$GIS_OPT_COLOR" ] ; then
    #### check the color rule is valid
-   COLOR_OPTS=`ls $GISBASE/etc/colors/`
-   COLOR_OPTS="`echo $COLOR_OPTS | tr '\n' ' '` random grey.eq grey.log rules"
+   COLOR_OPTS=`ls "$GISBASE/etc/colors/"`
+   COLOR_OPTS="`echo "$COLOR_OPTS" | tr '\n' ' '` random grey.eq grey.log rules"
 
    HAVE_COLR=0
    for COLR in $COLOR_OPTS ; do



More information about the grass-commit mailing list