commit e5d3516a2e99b321fccccda480800e555dbd7ed7
parent 4abc266a309f3299ee5ce7b6bbeb7aabd078a859
Author: ukai <ukai>
Date: Thu, 20 Dec 2001 12:32:19 +0000
[w3m-dev 02683]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,10 @@
+2001-12-20 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 02683]
+ * configure (def_param): fix wrong behavior unless variable initialized
+ * configure (def_param): fix unnecessary eval
+ * configure (ask_choice): ditto
+
2001-12-20 Dai Sato <satodai@dog.intcul.tohoku.ac.jp>
* w3mhelp-*.html, doc/README, doc-jp/README:
diff --git a/configure b/configure
@@ -234,7 +234,8 @@ def_param() {
eval "fvar=\$$flag"
dflt=$2
if [ -z "$fvar" ]; then
- eval "fvar=$dflt"
+ fvar=$dflt
+ eval $flag='$fvar'
fi
def=`echo $flag | tr '[a-z]' '[A-Z]'`
if [ "$fvar" = "y" ]; then
@@ -242,7 +243,7 @@ def_param() {
else
eval "def_$flag='#undef $def'"
fi
- eval "echo $flag=$fvar >> config.param"
+ echo "$flag=$fvar" >> config.param
}
#
@@ -330,7 +331,7 @@ ask_choice() {
shift
eval "def_$var='#define $def $v'"
eval "$var=$v"
- eval "echo $var=$v >> config.param";
+ echo "$var=$v" >> config.param
echo " $def=$v"
break
;;