Eric Blake wrote:
> According to Ralf Wildenhues on 11/16/2008 2:18 PM:
>> @@ -1743,6 +1743,7 @@
>> AS_IF([_AS_RUN(["AS_ESCAPE(m4_quote(_AS_VAR_ARITH_WORKS))"])],
>> [as_func_arith ()
>> {
>> as_val=`expr "$[]@"`
>> + case $? in 0|1) :;; *) false;; esac
>
> Apologies for not reviewing this closer. m4_quote doesn't like the
> unbalanced unquoted ) you just introduced into _AS_VAR_ARITH_WORKS. You
> need to either change that _AS_RUN to use m4_expand (which handles
> unbalanced unquoted paren), or write [)] (so the parens are quoted), or
> add balancing ( as a shell comment.
Or use `expr "$[]@" || test $? = 1` if it is portable.
Paolo