aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-10 20:26:56 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-10 20:26:56 +0000
commite0071ab2f279a44f007c84b2a8e7ebf23c7413d0 (patch)
treecc534fb8695cfb8d0aabacb2f8b3f7826a2c288c
parent4fe26c26ad394eb3a056cd30423196eca1ab02c3 (diff)
downloadpaludis-e0071ab2f279a44f007c84b2a8e7ebf23c7413d0.tar.gz
paludis-e0071ab2f279a44f007c84b2a8e7ebf23c7413d0.tar.xz
Fix multiple quote handling. Fixes: ticket:130
-rw-r--r--paludis/repositories/gentoo/ebuild/builtin_metadata.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/repositories/gentoo/ebuild/builtin_metadata.bash b/paludis/repositories/gentoo/ebuild/builtin_metadata.bash
index 2170925..34a61b5 100644
--- a/paludis/repositories/gentoo/ebuild/builtin_metadata.bash
+++ b/paludis/repositories/gentoo/ebuild/builtin_metadata.bash
@@ -29,9 +29,9 @@ ebuild_f_metadata()
E_DEPEND E_RDEPEND E_PDEPEND E_KEYWORDS ; do
set -o noglob
local k=${!key}
- k=${k/\\/\\\\}
- k=${k/\"/\\\"}
- k=${k/\$/\\\$}
+ k=${k//\\/\\\\}
+ k=${k//\"/\\\"}
+ k=${k//\$/\\\$}
echo "${key}=\""${k}"\""
set +o noglob
done