From: Akim Demaille <[EMAIL PROTECTED]>
Date: 23 May 2000 17:15:16 +0200
expr has a bad reputation
Its syntax is awkward -- was that what you were thinking about? But I
haven't had portability problems with it, so I don't know what you
want to document. Perhaps this is because I unconsciously stick to
the Unix version 7 subset. If you use the POSIX.2 standard subset I
think you should be fine. expr is already mentioned in the GNU coding
standards as a utility that you can use.
How would you write this:
case $ac_package in
[*[^-a-zA-Z0-9_]*]) AC_MSG_ERROR([invalid package: $ac_package]);;
esac
This way:
if expr "x$ac_package" : '.*[^-a-zA-Z0-9_]' >/dev/null; then
AC_MSG_ERROR([invalid package: $ac_package])
fi
- 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
