On 23 May 2000, Akim Demaille wrote:
> How would you write this:
>
> case $ac_package in
> [*[^-a-zA-Z0-9_]*]) AC_MSG_ERROR([invalid package: $ac_package]);;
> esac
| Your example could be rewritten to use a dummy case which is the
| complement, and changing the case you're looking for to the default
| of the case statement.
|
| The existing autoconf scripts use this in several places.
No, I don't think you can: there is no Kleene star nor anchor which
would make it possible. In one word, I know how to say `there exist'
in fnmatch, I don't know how to say `for all'.
Akim
- Re: acgeneral.m4 & unsupported case patterns Akim Demaille
- Re: acgeneral.m4 & unsupported case patterns Paul Eggert
- Re: acgeneral.m4 & unsupported case patterns Akim Demaille
- Re: acgeneral.m4 & unsupported case patt... Thomas E. Dickey
- Re: acgeneral.m4 & unsupported case ... Akim Demaille
- Re: acgeneral.m4 & unsupported ... Thomas E. Dickey
- Re: acgeneral.m4 & unsuppor... Akim Demaille
- Re: acgeneral.m4 & unsu... Thomas E. Dickey
- Re: acgeneral.m4 & unsu... Paul Eggert
- Re: acgeneral.m4 & unsupported case ... Paul D. Smith
- Re: acgeneral.m4 & unsupported case patt... Paul Eggert
- Re: acgeneral.m4 & unsupported case ... Akim Demaille
- Re: acgeneral.m4 & unsupported ... Paul Eggert
- Re: acgeneral.m4 & unsupported case patterns Earnie Boyd
