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

Reply via email to