[bug #66665] Prefix character not applied to all canned recipe lines if provided by variable

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

                 Summary: Prefix character not applied to all canned recipe
lines if provided by variable
                   Group: make
               Submitter: None
               Submitted: Wed 15 Jan 2025 09:35:44 AM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.4.1
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 15 Jan 2025 09:35:44 AM UTC By: Anonymous
Minimal example:

define def
  echo first line
  echo second line
endef

Q=@

all:
	$(Q)$(def)


Output:

first line
echo second line
second line


I would expect the prefix character @ to be applied to both recipe lines of
"def". This is the case when the @ is provided literally. Provided by
variable, though, it is only applied to the first line of the canned recipe.







    _______________________________________________________

Reply to this item at:

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

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

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ4eBdQAKCRCqLAuaBUf3
TmtYAQCKJ2g+Y1P3LXyuzpu/MJx3j4cRVGrauMM0ZERiITVhjgEA/Xli1xhXuT1b
VQQvqz355R/mpQvY0cL8HzEqAgF8oQw=
=4gXl
-----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.