Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-03-22 04:58:50


Hi,
the following code:

l = "" a b ;

if $(l) {
ECHO "Okay" ;
}

Behaves differently in 2.3 and the most most recent version from the public
depot. Should this be considered a bug?

The problem is in compile.c:
LIST *
compile_eval(
PARSE *parse,
LOL *args )
{
...........................
switch( parse->num )
{
case EXPR_EXISTS:
if( ll && ll->string[0] ) status = 1;
^^^^^^^^ here's the problem
should check all the elements of the list.
It appears to be trivial to fix.

- Volodya

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk