[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #45728] .VARIABLES not updated after undefine

From: anonymous
Subject: [bug #45728] .VARIABLES not updated after undefine
Date: Mon, 28 Sep 2015 16:34:16 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #1, bug #45728 (project make):

I think the problem is a bit larger than what is exhibited here.

I started with the following script:

gmake --version; 
exec gmake --warn-undefined-variables -f "$0" "$@"

undefine MY_foo
$(warning MY variables: $(filter MY_%,${.VARIABLES}))
$(foreach x,$(filter MY_%,${.VARIABLES}),$(eval undefine ${x}))
$(warning MY Variables: $(filter MY_%,${.VARIABLES}))

all: ; @true

If I run that script, I get output on par with the originally submitted bug --
though it should be noted that it at least appears to work fine unless you use

If I add an evaluation of .VARIABLES between lines 6 & 7 (copy/paste one of
the $(warning) lines) I get different (also buggy) behavior.  If I put the
$(warning) line in a variable and evaluate that, I get other buggy behavior.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]