autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc: more Limitations of Builtins: case, read


From: Ralf Wildenhues
Subject: Re: doc: more Limitations of Builtins: case, read
Date: Mon, 3 Jan 2005 15:25:06 +0100
User-agent: Mutt/1.4.1i

* Paul Eggert wrote on Wed, Dec 22, 2004 at 10:50:47PM CET:
> Ralf Wildenhues <address@hidden> writes:
> 
> >     * doc/autoconf.texi (Limitations of Builtins) <case>: Mention 
> >     problems with SunOS ksh and backslash escaping, Bourne shells and
> >     closing brackets (both within character classes).  Bug reported
> >     against Libtool by Alexander Kurz <address@hidden>.
> >     <read>: New entry.  Mention non-availability of -r.
> 
> Thanks; I installed that, along with some extra wording cleanup.

Thanks.  The following makes Autoconf honor the documented `case'
limitations.  Contrary to the comment, I haven't tested it much. :)

Regards,
Ralf

        * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
        Workarounds for documented `case' limitations.

Index: lib/autoconf/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.838
diff -u -r1.838 general.m4
--- lib/autoconf/general.m4     17 Dec 2004 16:17:19 -0000      1.838
+++ lib/autoconf/general.m4     3 Jan 2005 14:17:09 -0000
@@ -1109,7 +1109,7 @@
       continue ;;
 dnl If you change this globbing pattern, test it on an old shell --
 dnl it's sensitive.  Putting any kind of quote in it causes syntax errors.
-  [  *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)]
+  [  *" "*|*"  "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)]
       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     esac
     case $ac_pass in
@@ -1414,7 +1414,7 @@
     case $ac_new_val in
 dnl If you change this globbing pattern, test it on an old shell --
 dnl it's sensitive.  Putting any kind of quote in it causes syntax errors.
-[    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)]
+[    *" "*|*"  "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)]
       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     *) ac_arg=$ac_var=$ac_new_val ;;
     esac




reply via email to

[Prev in Thread] Current Thread [Next in Thread]