On Nov 10, 2000, Paul Eggert <[EMAIL PROTECTED]> wrote:

>> From: Akim Demaille <[EMAIL PROTECTED]>

>> ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`

> Ouch.  Can you rewrite that as follows to work around the bug?

How about:

# Work around the problem that "expr 'a' : 'a\(\)'" outputs "0" in QNX.
case $ac_option in
*=?*) ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` ;;
*) ac_optarg= ;;
esac

Anyway, I'm still concerned with the problem of exceeding the maximum
match length.  I'm inclined to think we should support prefixes as
long as the user wants, unless we have a very good reason not to do
so.  I mean, it's not like it would be too costly to add a sed-based
fallback here.  Or would it?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to