Opened 19 years ago

Closed 17 years ago

#136 closed defect (worksforme)

Glob exclude broken

Reported by: michel Owned by: somebody
Priority: major Milestone:
Component: component1 Version: 2.0
Keywords: Cc:

Description

Excluding files from a set does not work. Let's assume we have a directory with two .cpp files (helloworld.cpp and excludefile.cpp). The following line

ECHO [ glob *.cpp : excludefile.cpp ] ;

will output

helloworld.cpp excludefile.cpp

although "excludefile.cpp" has been excluded.

I have a workaround for this problem:

import set ;
ECHO [ set.difference [ glob *.cpp ] : excludefile.cpp ] ;

will output

helloworld.cpp

only.

Attachments (1)

testglob.zip (575 bytes ) - added by michel 19 years ago.
helloworld example

Download all attachments as: .zip

Change History (2)

by michel, 19 years ago

Attachment: testglob.zip added

helloworld example

comment:1 by jurko.gospodnetic@…, 17 years ago

Resolution: worksforme
Status: newclosed

Tested and works find for me with the current trunk version of Boost Jam (3.17 will be the next release).

Note: See TracTickets for help on using tickets.