bug-make
[Top][All Lists]
Advanced

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

[bug #62381] use of hash (#) changed behavior 4.2 to 4.3


From: Paul D. Smith
Subject: [bug #62381] use of hash (#) changed behavior 4.2 to 4.3
Date: Thu, 28 Apr 2022 10:40:23 -0400 (EDT)

Update of bug #62381 (project make):

                  Status:                    None => Not A Bug              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

This is discussed in the NEWS file for GNU make 4.3:


* WARNING: Backward-incompatibility!
  Number signs (#) appearing inside a macro reference or function invocation
  no longer introduce comments and should not be escaped with backslashes:
  thus a call such as:
    foo := $(shell echo '#')
  is legal.  Previously the number sign needed to be escaped, for example:
    foo := $(shell echo '\#')
  Now this latter will resolve to "\#".  If you want to write makefiles
  portable to both versions, assign the number sign to a variable:
    H := \#
    foo := $(shell echo '$H')
  This was claimed to be fixed in 3.81, but wasn't, for some reason.
  To detect this change search for 'nocomment' in the .FEATURES variable.


https://git.savannah.gnu.org/cgit/make.git/tree/NEWS?h=4.3#n18


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62381>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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