Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=openjava.git;a=commitdiff;h=f628a34356e2018a0c9d194411f93a1c4b5965ef

commit f628a34356e2018a0c9d194411f93a1c4b5965ef
Author: James Buren <r...@frugalware.org>
Date:   Mon Jun 4 21:27:31 2012 -0500

util.sh: modify Freplace to work with variable arrays

diff --git a/source/include/util.sh b/source/include/util.sh
index 7156dd8..cd1f778 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -674,7 +674,7 @@ Freplace() {
for i in "${@:2:$#}"; do
for path in $i; do # expand $i if possible
Fmessage "Subtituing $1 in file: $path"
-                       eval "__Fsed '@$1@' \"\${$1}\" \"\$path\""
+                       __Fsed "@$1@" "$(eval echo \${$1[@]})" "$path"
done
done
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to