[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Tricky problem filtering out commas from a string.
From: |
Dave Korn |
Subject: |
RE: Tricky problem filtering out commas from a string. |
Date: |
Thu, 19 Apr 2007 14:24:32 +0100 |
On 19 April 2007 14:19, Dave Korn wrote:
>> COMMA = ,
>> LIST_WITHOUT_COMMAS:=$(filter-out $(COMMA),$(LIST_WITH_COMMAS))
>
> Doesn't actually work in practice: as Danny pointed out, filter-out only
> matches entire words, but using a variable enabled subst to work.
Of course,
__lib_comma:=,
LIST_NOCOMMAS:=$(patsubst %$(__lib_comma),%,$(LIST))
works just as well.
cheers,
DaveK
--
Can't think of a witty .sigline today....