beginning of character class, to work around old Bash bug.
(func_quote_for_expand): Also test to avoid unnecessary fork.
+2004-12-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * config/general.m4sh (func_quote_for_eval): Move backslash to
+ beginning of character class, to work around old Bash bug.
+ (func_quote_for_expand): Also test to avoid unnecessary fork.
+
2004-12-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
Gary V. Vaughan <gary@gnu.org>
func_quote_for_eval ()
{
case $1 in
- *[[\`\"\\\$]]*)
+ *[[\\\`\"\$]]*)
func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
*)
func_quote_for_eval_unquoted_result="$1" ;;
# but do not quote variable references.
func_quote_for_expand ()
{
- my_arg=`$ECHO "X$1" | $Xsed \
- -e "$double_quote_subst" -e "$sed_double_backslash"`
+ case $1 in
+ *[[\\\`\"]]*)
+ my_arg=`$ECHO "X$1" | $Xsed \
+ -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
+ *)
+ my_arg="$1" ;;
+ esac
case $my_arg in
# Double-quote args containing shell metacharacters to delay