From: Ralf Wildenhues Date: Thu, 9 Dec 2004 17:05:10 +0000 (+0000) Subject: * config/general.m4sh (func_quote_for_eval): Only fork if the X-Git-Tag: release-2-1b~827 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20540cfb42da12f3ee7b551b37fcaef2aaaf6593;p=thirdparty%2Flibtool.git * config/general.m4sh (func_quote_for_eval): Only fork if the substitution matches. --- diff --git a/ChangeLog b/ChangeLog index 394463b56..460371a40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-12-09 Ralf Wildenhues + + * config/general.m4sh (func_quote_for_eval): Only fork if the + substitution matches. + 2004-12-03 Gary V. Vaughan * TODO: Paste Peter's summary of the TODO thread starting at diff --git a/config/general.m4sh b/config/general.m4sh index 0b4b2151a..3088d9594 100644 --- a/config/general.m4sh +++ b/config/general.m4sh @@ -271,7 +271,12 @@ func_mktempdir () # which are still active within double quotes backslashified. func_quote_for_eval () { - func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` + case $1 in + *[[\`\"\\\$]]*) + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; + *) + func_quote_for_eval_unquoted_result="$1" ;; + esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay