Summary: gmake incorrectly implements Pattern Replacement
Macro References
                 Project: make
            Submitted by: schily
            Submitted on: Mon 23 Aug 2021 11:28:37 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.3
        Operating System: Any
           Fixed Release: None
           Triage Status: None



A macro reference like


where "op" does not match the start of the content of "name" is
incorrectly expanded.

If the content of "name" contains a TAB, this TAB is replaced
by a SPACE.

Since there is no match, $(name:op%=%) should be identical to

Even if there was a match, the TAB should not be replaced.

In other words: Pattern Replacement Macro References are
defined to work in a way that the white space between words
is literally retained.


Reply to this item at:


  Message sent via Savannah

Reply via email to