URL:
  <http://savannah.gnu.org/bugs/?17529>

                 Summary: Variable set with $(shell date '+%Y%m%d-%H%M%S')
changes mid-make
                 Project: make
            Submitted by: terrycojones
            Submitted on: Friday 08/25/2006 at 20:32
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
       Component Version: 3.81
        Operating System: POSIX-Based
           Fixed Release: None

    _______________________________________________________

Details:

I have a simple Makefile:

base = xxx-$(shell date '+%Y%m%d-%H%M%S')

t:
        @echo $(base)
        @echo $(base)
        @echo $(base)
        @echo $(base)
        @echo $(base)
        @echo $(base)

Sometimes when I 'make t' from the shell, the value of $(base) changes:

$ make t
xxx-20060825-222523
xxx-20060825-222523
xxx-20060825-222523
xxx-20060825-222523
xxx-20060825-222524
xxx-20060825-222524

This only happens rarely, perhaps once every 20 runs. I'm on Mac OS X 10.3.9
running a freshly built make 3.81. I can put some @sleep 5 lines into the
above t target and still see the same thing happen.

Terry








    _______________________________________________________

Reply to this item at:

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

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



_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to