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:52:02 -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

Follow-up Comment #1, bug #60799 (project make):


[comment #0 original submission:]
> 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.

(file #51584, file #51585)
    _______________________________________________________

Additional Item Attachment:

File name: sv_60799_se_semi_fix.diff      Size:4 KB
   
<https://file.savannah.gnu.org/file/sv_60799_se_semi_fix.diff?file_id=51584>

File name: sv_60799_se_semi_test.diff     Size:3 KB
   
<https://file.savannah.gnu.org/file/sv_60799_se_semi_test.diff?file_id=51585>



    _______________________________________________________

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]