[GRASS-SVN] r57006 - grass/branches/develbranch_6/scripts/m.proj

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 3 17:41:08 PDT 2013


Author: hamish
Date: 2013-07-03 17:41:08 -0700 (Wed, 03 Jul 2013)
New Revision: 57006

Modified:
   grass/branches/develbranch_6/scripts/m.proj/m.proj
Log:
try for grid file path quoting (#820)

Modified: grass/branches/develbranch_6/scripts/m.proj/m.proj
===================================================================
--- grass/branches/develbranch_6/scripts/m.proj/m.proj	2013-07-03 21:01:29 UTC (rev 57005)
+++ grass/branches/develbranch_6/scripts/m.proj/m.proj	2013-07-04 00:41:08 UTC (rev 57006)
@@ -168,8 +168,11 @@
 fi
 if [ $GIS_FLAG_O -eq 1 ] ; then
    IN_PROJ=`g.proj -j | (
-       IN_PROJ=
+       IN_PROJ=""
        while read line ; do
+           if [ $(echo "$line" | grep -c '+nadgrids=') -gt 0 ] ; then
+               line=$(echo "$line" | sed -e 's/=/="/' -e 's/$/"/')
+           fi
            IN_PROJ="$IN_PROJ '$line'"
        done
        echo "$IN_PROJ"
@@ -190,8 +193,11 @@
 fi
 if [ $GIS_FLAG_I -eq 1 ] ; then
    OUT_PROJ=`g.proj -j | (
-       OUT_PROJ=
+       OUT_PROJ=""
        while read line ; do
+           if [ $(echo "$line" | grep -c '+nadgrids=') -gt 0 ] ; then
+               line=$(echo "$line" | sed -e 's/=/="/' -e 's/$/"/')
+           fi
            OUT_PROJ="$OUT_PROJ '$line'"
        done
        echo "$OUT_PROJ"



More information about the grass-commit mailing list