Re: [exim-dev] patch for named acl variables

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: exim-dev
Subject: Re: [exim-dev] patch for named acl variables
On Thu, 21 Sep 2006, Jakob Hirsch wrote:

> Ok, runs fine, but something else came up. In previous versions, when
> comparing integers, an empty string was obviously equal to zero:
>
> > ${if ={0}{} {yessir} {no go}}
> yessir
>
> but now it raises an expansion failure:
>
> > ${if ={0}{} {yessir} {no go}}
> Failed: integer expected but "" found


I'm surprised it worked before. My reaction to this is that I have
accidentally fixed a bug. The manual says "the two strings must take the
form of optionally signed decimal integers..."

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book