Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=c94decb08dbfd4bc5306713415cef76a82ba9da9
commit c94decb08dbfd4bc5306713415cef76a82ba9da9 Author: James Buren <[email protected]> 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 a197e6f..cf874f1 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 [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
