[bug #66490] pattern substitution with % does not match suffixes

anonymous <[email protected]>
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?66490>

                 Summary: pattern substitution with % does not match suffixes
                   Group: make
               Submitter: None
               Submitted: Thu 28 Nov 2024 09:56:18 AM 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: POSIX-Based
           Fixed Release: None
           Triage Status: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 28 Nov 2024 09:56:18 AM UTC By: Anonymous
Hi,

According to my understanding of the current documentation it should be
possible to replace suffixes with pattern substitution references or
functions. But as of Make 4.3 on Debian this does not work:

make -sf - A=bcd.efg a <<EOF
B := \$(A:.%=)

%:
	echo \$B
EOF

expected result:
bcd

actual result:
bcd.efg

Same problem with $(patsubst .%,,$(A)).

Best regards,

-- 
Julien Plissonneau Duquène








    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ0g+RQAKCRCqLAuaBUf3
Ti4sAQD7gQcRt0jKC1uW3bsokj+uvHVeR9OAEYVtw4r1HWM3RwEA0+nfXRznneFV
Q3ttKXBBa6SnrVvKkrHjxOc+r3f4iQw=
=yoXC
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.