bug-make
[Top][All Lists]
Advanced

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

[bug #17529] Variable set with $(shell date '+%Y%m%d-%H%M%S') changes mi


From: Terry Jones
Subject: [bug #17529] Variable set with $(shell date '+%Y%m%d-%H%M%S') changes mid-make
Date: Fri, 25 Aug 2006 20:32:31 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.8 (KHTML, like Gecko) Safari/312.6

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/





reply via email to

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