autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix exit status of expr version of as_func_arith.


From: Ralf Wildenhues
Subject: Re: Fix exit status of expr version of as_func_arith.
Date: Sun, 16 Nov 2008 22:22:31 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Eric,

* Eric Blake wrote on Sun, Nov 16, 2008 at 10:01:25PM CET:
> 
> Looks okay to me.  Note, however, that bash doesn't change status to
> non-zero on $(()) failure:
> 
> $ echo $((+))
> bash: +: syntax error: operand expected (error token is "+")
> $ echo $?
> 0
> 
> so we can't really make as_func_arith a reliable way to detect ill-formed
> input.

Hmm, bash 3.2.39 here does, as does zsh 4.3.6.  OTOH, pdksh doesn't
output an error neither change the status.

Pushed, thanks for the review!

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]