[Koha-patches] [PATCH] have Makefile.PL check for dollar signs
Michael Hafen
mdhafen at tech.washk12.org
Wed Nov 18 22:38:49 CET 2009
Make treats any $ as an internal variable except $$. So have Makefile.PL when
getting values turn any $ into $$.
---
Makefile.PL | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index e3957dc..fc319fc 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1180,6 +1180,7 @@ sub _get_value {
# take value from install log if present
if (exists $install_log_values{$key}) {
+ $install_log_values{$key} =~ s/\$/\$\$/g;
return $install_log_values{$key};
}
@@ -1199,6 +1200,7 @@ sub _get_value {
$retry_msg .= _add_valid_values_disp($key, $valid_values);
$val = prompt($retry_msg, $default);
}
+ $val =~ s/\$/\$\$/g;
return $val;
}
--
1.6.3.3
More information about the Koha-patches
mailing list