[GRASS-SVN] r30616 - grass/trunk/scripts/r.tileset

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 18 08:26:55 EDT 2008


Author: hamish
Date: 2008-03-18 08:26:55 -0400 (Tue, 18 Mar 2008)
New Revision: 30616

Modified:
   grass/trunk/scripts/r.tileset/r.tileset
Log:
get rid of 'echo -n'. (trac bug #81)

Modified: grass/trunk/scripts/r.tileset/r.tileset
===================================================================
--- grass/trunk/scripts/r.tileset/r.tileset	2008-03-18 12:13:35 UTC (rev 30615)
+++ grass/trunk/scripts/r.tileset/r.tileset	2008-03-18 12:26:55 UTC (rev 30616)
@@ -187,22 +187,14 @@
 # purpose: lookup values in passed by reference arrays
 
 Lookup_Mac() {
-
 # Assignment Command Statement Builder
-
-    echo -n 'eval '
-    echo -n "$3"                    # Destination name
-    echo -n '=${'
-    echo -n "$1"                    # Source name
-    echo -n "[$2]}"
-
-# That could all be a single command.
-# Matter of style only.
+# "$1" is Source name, "$3" is Destination name
+    echo "eval $3"'=${'"$1[$2]}"
 }
 
 # Lookup_Mac
 
-declare -f LookupP                # Function "Pointer"
+declare -f LookupP               # Function "Pointer"
 LookupP=Lookup_Mac               # Statement Builder
 
 lookup () {



More information about the grass-commit mailing list