Re: [Exim] String expansion broken?

Pàgina inicial
Delete this message
Reply to this message
Autor: John Horne
Data:  
A: exim-users
Assumpte: Re: [Exim] String expansion broken?
On 07-Mar-2002 at 15:21:05 michael@??? wrote:
> when calling Exim 3.33 as
> exim -be '${if ={1}{1} {true}{${if ={1}{1} {true}{${if ={1}{1}
> {true}fail}}}}}'
>
> the result is
>
> true}}
>

Interesting :-) I can only add that under 4.01 I get the same result.
However, if you:

a) Remove the 'fail' then you get the result 'true' - albeit that the
overall test has now changed since no forced failure can occur;
b) Change the 'fail' for '{}' gives the right answer (again though the test
has changed);
c) Remove the last 2 '}' and you get the result 'true'. However, the
expression then looks wrong - too few closing braces!
d) Removing the last level of testing:
      ${if ={1}{1} {true}{${if ={1}{1} {true}fail}}}
   gives the right answer regardless of whether 'fail' is present or not.




John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers