bug-make
[Top][All Lists]
Advanced

[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:

#!/bin/bash
# 
gmake --version; 
exec gmake --warn-undefined-variables -f "$0" "$@"

MY_foo:=foo
undefine MY_foo
MY_bar:=bar
$(warning MY variables: $(filter MY_%,${.VARIABLES}))
$(foreach x,$(filter MY_%,${.VARIABLES}),$(eval undefine ${x}))
MY_baz:=baz
$(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
$(foreach).

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:

  <http://savannah.gnu.org/bugs/?45728>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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