]> mj.ucw.cz Git - eval.git/commitdiff
Fixed a bug in expansion of variables.
authorTomas Gavenciak <gavento@atrey.karlin.mff.cuni.cz>
Wed, 21 May 2008 13:02:55 +0000 (15:02 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 21 May 2008 13:02:55 +0000 (15:02 +0200)
eval/libeval.sh

index 8bda3e67427a78e3f28e8e17d7f5ddc82c630913..542b07d31a97b23f431b3e48db51da92ffc19d04 100644 (file)
@@ -53,7 +53,7 @@ function try-ln
 
 function expand-var
 {
-       eval echo ${!1}
+       eval echo \"${!1}\"
 }
 
 # Given a <prefix>, override each variable <x> by <prefix>_<x>