bug-make
[Top][All Lists]
Advanced

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

[bug #60799] Parser chokes on second expansion of a prerequisite with ;


From: Dmitry Goncharov
Subject: [bug #60799] Parser chokes on second expansion of a prerequisite with ; o #
Date: Sat, 19 Jun 2021 09:42:00 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?60799>

                 Summary: Parser chokes on second expansion of a prerequisite
with ; o #
                 Project: make
            Submitted by: dgoncharov
            Submitted on: Sat 19 Jun 2021 01:41:58 PM UTC
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Parser chokes on second expansion of a prerequisite with ; o #

$ cat makefile 
MAKEFLAGS+=--warn-undefined-variables
.SECONDEXPANSION:
hello: $$(shell echo world;)
        touch $@

bye: $$(hello#world)
        touch $@
$ make hello
makefile:7: *** unterminated variable reference.  Stop.
$ make bye
makefile:7: *** unterminated variable reference.  Stop.
$ 


Parser treats ; as a recipe delimiter and # as a comment delimiter.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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