NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/39802: make(1) :? modifier does not work
On Mon, Dec 22, 2008 at 10:35:02PM +0000, David Laight wrote:
>
> :? expands the variable to its left and treats the contents as a conditional.
Wrong! The code passes v->name through to the condition code.
This means that the value is discared, so any modifiers to the
value have no effect.
Which all means that ${foo:Mbah?:bar:baz} ends up being the same
as ".if foo" which is (until recently undocumented) the same
as ".ifdef foo" ie ".if defined(foo)" and likely to be true.
A long time ago (prior to xmas day 2001) it process the expanded
variable.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index