]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* config/general.m4sh (func_quote_for_eval): Only fork if the
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 9 Dec 2004 17:05:10 +0000 (17:05 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 9 Dec 2004 17:05:10 +0000 (17:05 +0000)
substitution matches.

ChangeLog
config/general.m4sh

index 394463b568598fa86d58db5b4770e509a8cf6b2f..460371a40452b384588aa5f66b0ced4a3fc542ad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * config/general.m4sh (func_quote_for_eval): Only fork if the
+       substitution matches.
+
 2004-12-03  Gary V. Vaughan  <gary@gnu.org>
 
        * TODO: Paste Peter's summary of the TODO thread starting at
index 0b4b2151a92fb1324f8daebaf1788976c6392a43..3088d95948a91236344fa4a065b521ac9834bd72 100644 (file)
@@ -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