[GRASS-SVN] r30634 -
grass/branches/releasebranch_6_3/scripts/r.tileset
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 19 06:50:58 EDT 2008
Author: hamish
Date: 2008-03-19 06:50:58 -0400 (Wed, 19 Mar 2008)
New Revision: 30634
Modified:
grass/branches/releasebranch_6_3/scripts/r.tileset/r.tileset
Log:
merge from HEAD: get rid of 'echo -n'. (trac bug #81)
Modified: grass/branches/releasebranch_6_3/scripts/r.tileset/r.tileset
===================================================================
--- grass/branches/releasebranch_6_3/scripts/r.tileset/r.tileset 2008-03-19 10:31:36 UTC (rev 30633)
+++ grass/branches/releasebranch_6_3/scripts/r.tileset/r.tileset 2008-03-19 10:50:58 UTC (rev 30634)
@@ -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