|
| From: | anonymous |
| Subject: | [bug #61309] Bad rule evaluation when SHELL variable contains environment variables |
| Date: | Fri, 8 Oct 2021 05:59:59 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?61309>
Summary: Bad rule evaluation when SHELL variable contains
environment variables
Project: make
Submitted by: None
Submitted on: Fri 08 Oct 2021 09:59:57 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
_______________________________________________________
Details:
When the SHELL variable contains environment variables, multi-line rules
(broken with backslash) are processed line by line.
For
SHELL = FOO=BAR sh
all:
@echo hello \
world
this results in the following erroneous output
hello \
/bin/sh: 2: world: not found
Removing the environment variable from the SHELL variable
SHELL = sh
all:
@echo hello \
world
produces the expected output:
hello world
.ONESHELL doesn't seem to help in this case.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 08 Oct 2021 09:59:57 AM UTC Name: Makefile Size: 265B By: None
<http://savannah.gnu.org/bugs/download.php?file_id=52071>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61309>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |