* config/general.m4sh (func_quote_for_eval): Only fork if the

substitution matches.
This commit is contained in:
Ralf Wildenhues 2004-12-09 17:05:10 +00:00
parent 9011d5103d
commit 20540cfb42
2 changed files with 11 additions and 1 deletions

View File

@ -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

View 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