URL:
<http://savannah.gnu.org/bugs/?31278>
Summary: multiple shell commands within one rule invoke
separate shell environments
Project: make
Submitted by: None
Submitted on: Fri 08 Oct 2010 05:49:10 PM UTC
Severity: 3 - Normal
Item Group: Enhancement
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.81
Operating System: None
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
Hi,
It would be really nice if make somehow used the same instance of a shell in
the commands for a given rule, for example:
SHELL = /bin/bash
f :
a=5
@echo $${a}
does not do what one wants. instead you must say:
f :
@a=5; echo $${a}
It isn't a bug, since there is no claim that make retains a shell
environment.
I don't think it would be desirable to retain the shell environment across
rules, but within a rule, i think it makes sense.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31278>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make