autoconf
[Top][All Lists]
Advanced

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

Re: AS_DIRNAME and expr


From: Alexandre Oliva
Subject: Re: AS_DIRNAME and expr
Date: 11 Nov 2000 04:51:04 -0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

On Nov 10, 2000, Paul Eggert <address@hidden> wrote:

>> From: Akim Demaille <address@hidden>

>> 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                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



reply via email to

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