URL:
<https://savannah.gnu.org/bugs/?61805>
Summary: .ONESHELL causes quoting in .SHELLFLAGS to not work
as expected.
Project: make
Submitted by: dgoncharov
Submitted on: Thu 13 Jan 2022 12:53:17 AM UTC
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: SCM
Operating System: None
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
A user reported the following
.ONESHELL causes quoting in .SHELLFLAGS to not work as expected.
$ cat Makefile
.ONESHELL:
SHELL = /usr/bin/perl
.SHELLFLAGS = -w -E 'use warnings FATAL => "all";' -E
all:
print 'it works'
$ make all
print 'it works'
Can't find string terminator "'" anywhere before EOF at -e line 1.
make: *** [Makefile:5: all] Error 255
$
Without .ONESHELL: the above works as expected.
The original bug report is here
https://lists.gnu.org/archive/html/bug-make/2022-01/msg00024.html.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61805>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/