[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
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/11/09
- Re: Success (mostly) with the testsuite, David Morgan, 2000/11/09
- Re: AS_DIRNAME and expr, Paul Eggert, 2000/11/09
- Re: AS_DIRNAME and expr, David Morgan, 2000/11/09
- Re: AS_DIRNAME and expr, Paul Eggert, 2000/11/09
- Re: AS_DIRNAME and expr, Akim Demaille, 2000/11/10
- Re: AS_DIRNAME and expr, Paul Eggert, 2000/11/10
- Re: AS_DIRNAME and expr,
Alexandre Oliva <=
- Re: AS_DIRNAME and expr, Paul Eggert, 2000/11/11
- Re: AS_DIRNAME and expr, Akim Demaille, 2000/11/16
- Re: AS_DIRNAME and expr, David Morgan, 2000/11/16
- Re: AS_DIRNAME and expr, Paul Berrevoets, 2000/11/17
- Re: AS_DIRNAME and expr, Akim Demaille, 2000/11/29
- Re: AS_DIRNAME and expr, Paul Eggert, 2000/11/29
- Re: AS_DIRNAME and expr, Akim Demaille, 2000/11/29
- Re: AS_DIRNAME and expr, Akim Demaille, 2000/11/29
- Re: AS_DIRNAME and expr, Paul Berrevoets, 2000/11/29
- Re: AS_DIRNAME and expr, Akim Demaille, 2000/11/29