"Kevin F. Quinn" <[EMAIL PROTECTED]> posted
[EMAIL PROTECTED], excerpted below, on  Mon,
23 Oct 2006 16:20:50 +0200:

> FWIW I think Simon meant:
> 
> CFLAGS=" ${CFLAGS}" ; CFLAGS=${CFLAGS// -fremoved}
> 
> assuming that adding the space was done to catch flags that match part
> of longer flags.

What about adding a space at each end, then testing for a space at each
end of the removed,, but then you have to be sure and add one space back
in so as not to concatenate two flags into one with the removal, so...

CFLAGS=" ${CFLAGS} " ; CFLAGS=${CFLAGS// -fremoved/ /}

If I'm not mistaken, that should eliminate the partial flag matches you
mentioned without causing other issues.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

-- 
[email protected] mailing list

Reply via email to